Documentation
    Preparing search index...

    Interface LinkServiceOptions

    Options for createLinkService.

    interface LinkServiceOptions {
        allowedProtocols?: readonly string[];
        open?: (
            context: LinkOpenContext,
        ) => LinkOpenResult | Promise<LinkOpenResult>;
    }
    Index

    Properties

    allowedProtocols?: readonly string[]

    Protocols allowed before host policy runs. Defaults to http: and https:.

    open?: (context: LinkOpenContext) => LinkOpenResult | Promise<LinkOpenResult>

    Host-owned opener. Return { status: "opened" } after handing navigation to the host context, or { status: "denied" } to reject by policy/user. When omitted, all otherwise-valid URLs are denied.