Documentation
    Preparing search index...

    Interface IntentResolver

    Abstract intent resolver. Implementors own the installed-napplet catalog, archetype→handler resolution, the user's default-handler preference, the "open with…" chooser, window creation/focus, and payload delivery. The service translates wire envelopes into these calls and back.

    interface IntentResolver {
        available(
            archetype: string,
        ): IntentAvailability | Promise<IntentAvailability>;
        handlers(): IntentAvailability[] | Promise<IntentAvailability[]>;
        invoke(
            request: IntentRequest,
            context: IntentResolverContext,
        ): IntentResult | Promise<IntentResult>;
        onChanged?(
            listener: (availability: IntentAvailability) => void,
        ): () => void;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Register for availability changes (a napplet installed/removed, or a default handler changed). The service forwards each change to served napplets as an intent.changed push. Returns an unsubscribe handle. Resolvers whose catalog never changes at runtime MAY omit this.

      Parameters

      Returns () => void