interface RemotePlayback {
    onconnect: null | ((this, ev) => any);
    onconnecting: null | ((this, ev) => any);
    ondisconnect: null | ((this, ev) => any);
    state: RemotePlaybackState;
    addEventListener<K>(type, listener, options?): void;
    addEventListener(type, listener, options?): void;
    cancelWatchAvailability(id?): Promise<void>;
    dispatchEvent(event): boolean;
    prompt(): Promise<void>;
    removeEventListener<K>(type, listener, options?): void;
    removeEventListener(type, listener, options?): void;
    watchAvailability(callback): Promise<number>;
}

Hierarchy

  • EventTarget
    • RemotePlayback

Properties

onconnect: null | ((this, ev) => any)

Type declaration

onconnecting: null | ((this, ev) => any)

Type declaration

ondisconnect: null | ((this, ev) => any)

Type declaration

Methods

  • Parameters

    • Optional id: number

    Returns Promise<void>

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    Parameters

    • event: Event

    Returns boolean

  • Returns Promise<void>

  • Returns Promise<number>

Generated using TypeDoc