Interface OpenWithHandler

interface OpenWithHandler {
    iconClass?: string;
    id: string;
    label?: string;
    providerName?: string;
    canHandle(uri): number;
    getOrder?(uri): number;
    open(uri): MaybePromise<undefined | object>;
}

Properties

iconClass?: string

A css icon class of this handler.

id: string

A unique id of this handler.

label?: string

A human-readable name of this handler.

providerName?: string

A human-readable provider name of this handler.

Methods

  • Test whether this handler can open the given URI for given options. Return a nonzero number if this handler can open; otherwise it cannot. Never reject.

    A returned value indicating a priority of this handler.

    Parameters

    Returns number