Documentation
    Preparing search index...

    Interface CatalogIntentResolverOptions

    interface CatalogIntentResolverOptions {
        windows: IntentWindowController;
        chooseHandler?(
            archetype: string,
            candidates: IntentCandidate[],
            callerWindowId: string,
        ): string | Promise<string | undefined> | undefined;
        defaultProtocol?(archetype: string): string | undefined;
        getDefaultHandler?(archetype: string): string | undefined;
        loadCatalog(): IntentCatalogEntry[] | Promise<IntentCatalogEntry[]>;
    }
    Index

    Properties

    Window controller used to create/focus the resolved handler's window. Required.

    Methods

    • Resolve a handler: "choose" prompt (or a no-default ambiguity) to a dTag. Returning undefined means the user cancelled. When omitted, ambiguous resolution falls back to the first candidate.

      Parameters

      Returns string | Promise<string | undefined> | undefined

    • The user's default handler dTag for an archetype, or undefined when none is set. Default-handler settings are user state — never set by napplets.

      Parameters

      • archetype: string

      Returns string | undefined