onOpened Static Readonly

onOpened: BeEvent<(_iModelDb: BriefcaseDb, _args: OpenBriefcaseArgs) => void> = ...

Event raised just after a BriefcaseDb is opened. Supplies the newly opened BriefcaseDb and the arguments that were used to open it.

Example:

BriefcaseDb.onOpened.addListener((iModel: BriefcaseDb) => {
  if (iModel.openMode !== OpenMode.ReadWrite)
    return;
  // ... do something with the writeable briefcase
});

Defined in

Last Updated: 23 November, 2024