Documentation
    Preparing search index...

    Interface BrowserIntentControllerOptions

    Browser lifecycle callbacks injected by the Paja host.

    interface BrowserIntentControllerOptions {
        maxAttempts?: number;
        getWindowId?(generation: BrowserIntentGeneration): string | null;
        isCurrent(generation: BrowserIntentGeneration): boolean | Promise<boolean>;
        onAccepted?(
            params: IntentDispatchParams,
            acceptance: IntentTargetAcceptance,
        ): void;
        onDelivered?(params: IntentDispatchParams): void;
        onTerminal?(
            params: IntentDispatchParams,
            reason: BrowserIntentTerminalReason,
        ): void;
        openOrReuse(
            params: IntentDispatchParams,
            attempt: number,
        ): BrowserIntentGeneration | Promise<BrowserIntentGeneration | null> | null;
        send(
            generation: BrowserIntentGeneration,
            params: IntentDispatchParams,
        ): void | Promise<void>;
        waitForReady(generation: BrowserIntentGeneration): void | Promise<void>;
    }
    Index

    Properties

    maxAttempts?: number

    Maximum open/replacement attempts. Finite values clamp to 1–10; defaults to two.

    Methods

    • Observe retained target work before its asynchronous completion can race.

      Parameters

      • params: IntentDispatchParams
      • acceptance: IntentTargetAcceptance

      Returns void