RemotePlayback
interface RemotePlayback extends EventTarget {
onconnect: ((this: RemotePlayback, ev: Event) => any) | null;
onconnecting: ((this: RemotePlayback, ev: Event) => any) | null;
ondisconnect: ((this: RemotePlayback, ev: Event) => any) | null;
readonly state: RemotePlaybackState;
addEventListener<K extends keyof RemotePlaybackEventMap>(
type: K,
listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;addEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void;cancelWatchAvailability(id?: number): Promise<void>;
prompt(): Promise<void>;
removeEventListener<K extends keyof RemotePlaybackEventMap>(
type: K,
listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;removeEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void;watchAvailability(callback: RemotePlaybackAvailabilityCallback): Promise<number>;
}var RemotePlayback: {
prototype: RemotePlayback;
new (): RemotePlayback;
};§Extends
§Properties
§
onconnect: ((this: RemotePlayback, ev: Event) => any) | null
[src]§
onconnecting: ((this: RemotePlayback, ev: Event) => any) | null
[src]§
ondisconnect: ((this: RemotePlayback, ev: Event) => any) | null
[src]§
readonly state: RemotePlaybackState
[src]§Methods
§
addEventListener<K extends keyof RemotePlaybackEventMap>(
[src]type: K,
listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void§
addEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void§
removeEventListener<K extends keyof RemotePlaybackEventMap>(
[src]type: K,
listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void§
removeEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void§
watchAvailability(callback: RemotePlaybackAvailabilityCallback): Promise<number>
[src]