KONtx.remotedevice.findSubscribers

finds subscribers by type and subject

Synopsis

Array<String> findSubscribers(String type, String subject)

Parameters

The String type parameter is the type of the subscription and can be "INPUT", "SERVICE", or "WIDGET". The String subject parameter is the subject of the subscription and depends on the type parameter as follows:

  • for type INPUT : subjects can be keyboard or mediacontrol
  • for type SERVICE : subjects can be medialaunch
  • for type WIDGET : pass the empty string as the subject, the widgetId of the current app is populated in this field by the Engine

Returns

Returns an array of String(s) which is a list of instanceIds identifying the remote devices that match the given type and subject parameters. Returns null when no remote devices match.

Description

Uber method to find all subscribers for a given type and subject. Get all instance IDs of connected devices that are subscribed for the type and subject. If a device is currently in a disconnected state, it is not included in the array.

Table of Contents