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:
INPUT : subjects can be keyboard or mediacontrolSERVICE : subjects can be medialaunchWIDGET : 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.