Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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,
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,
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]

§Methods

§
addEventListener<K extends keyof RemotePlaybackEventMap>(
type: K,
listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
cancelWatchAvailability(id?: number): Promise<void>
[src]
§
prompt(): Promise<void>
[src]
§
removeEventListener<K extends keyof RemotePlaybackEventMap>(
type: K,
listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
[src]
§
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void
[src]
§
watchAvailability(callback: RemotePlaybackAvailabilityCallback): Promise<number>
[src]