@dxos/app-framework - v0.8.2
    Preparing search index...

    Class PluginModule

    A unit of containment of modular functionality that can be provided to an application. Activation of a module is async allowing for code to split and loaded lazily.

    Implements

    • PluginModuleInterface
    Index

    Constructors

    Properties

    activate: (
        context: PluginContext,
    ) =>
        | MaybePromise<AnyCapability | AnyCapability[]>
        | Promise<() => Promise<AnyCapability | AnyCapability[]>>

    Called when the module is activated.

    Type declaration

    activatesAfter?: ActivationEvent[]

    Events which this plugin triggers upon activation.

    activatesBefore?: ActivationEvent[]

    Events which the plugin depends on being activated. Plugin is marked as needing reset a plugin activated by a dependent event is removed. Events are automatically activated before activation of the plugin.

    activatesOn: ActivationEvents

    Events for which the module will be activated.

    id: string

    Unique id of the module.