watchAvailability method

JSPromise<JSNumber> watchAvailability(
  1. RemotePlaybackAvailabilityCallback callback
)

The watchAvailability() method of the RemotePlayback interface watches the list of available remote playback devices and returns a Promise that resolves with the callbackId of a remote playback device.

Implementation

external JSPromise<JSNumber> watchAvailability(
    RemotePlaybackAvailabilityCallback callback);