Documentation
    Preparing search index...

    Variable createNappKeyRegistryConst

    createNappKeyRegistry: (
        notifier?: PendingUpdateNotifier,
        onRegister?: (windowId: string) => void,
    ) => SessionRegistry = createSessionRegistry

    Type Declaration

      • (
            notifier?: PendingUpdateNotifier,
            onRegister?: (windowId: string) => void,
        ): SessionRegistry
      • Create a new SessionRegistry instance.

        Parameters

        • Optionalnotifier: PendingUpdateNotifier

          Optional callback invoked when pending updates change

        • OptionalonRegister: (windowId: string) => void

          Optional host callback invoked for each fresh registration, including replacement of the same windowId

        Returns SessionRegistry

        A SessionRegistry instance

        const registry = createSessionRegistry((windowId) => {
        console.log('Pending update changed for', windowId);
        });

    Use createSessionRegistry. Will be removed in v0.9.0.