scanSink(sink) {
    if (!sink.supportsAppAvailability()) {
      return [];
    }

    const promises = [];
    for (let appName of this.registeredApps_) {
      promises.push(this.doScanSinkForApp_(appName, sink));
    }
    return promises;
  }
/**
   * Asynchronously scans a sink against all registered apps and updates its app
   * status map if needed.
   * @param {!DialSink} sink
   * @return {!Array<!Promise<void>>} If the sink does not support app
   *     the getting app info, returns an empty array. Otherwise, returns a list
   *     of Promises, each corresponding to a registered app, resolved when the
   *     sink's app status has been updated.
   */
Asynchronously scans a sink against all registered apps and updates its app
status map if needed.
@param {!DialSink} sink
@return {!Array>} If the sink does not support app
the getting app info, returns an empty array. Otherwise, returns a list
of Promises, each corresponding to a registered app, resolved when the
sink's app status has been updated.
Asynchronously scans a sink against all registered apps and updates its app status map if needed . @param { !DialSink } sink @return { !Array > } If the sink does not support app the getting app info returns an empty array . Otherwise returns a list of Promises each corresponding to a registered app resolved when the sink ' s app status has been updated .
scanSink(sink) {
    if (!sink.supportsAppAvailability()) {
      return [];
    }
    const promises = [];
    for (let appName of this.registeredApps_) {
      promises.push(this.doScanSinkForApp_(appName, sink));
    }
    return promises;
  }
scanSink ( sink ) { if ( ! sink . supportsAppAvailability ( ) ) { return [ ] ; } const promises = [ ] ; for ( let appName of this . registeredApps_ ) { promises . push ( this . doScanSinkForApp_ ( appName , sink ) ) ; } return promises ; }
Asynchronously scans a sink against all registered apps and updates its app
 status map if needed.
Asynchronously scans a sink against all registered apps and updates its app status map if needed .