A bundle activator is a optionally provide by a bundle. The app runtime calls the bundle activator when the bundle, that declares it, is started or stopped.

interface Activator {
    start(bCtx: BundleContext): void | Promise<void>;
    stop(bCtx: BundleContext): void | Promise<void>;
}

Methods

Methods

  • Called from the app runtime when the bundle is started.

    Parameters

    Returns void | Promise<void>

  • Called from the app runtime when the bundle is stopped.

    Parameters

    Returns void | Promise<void>