Handles everything needed to implement a fully working HomeKit remote controller.
Creates a new RemoteController. If siri voice input is supported the constructor to an SiriAudioStreamProducer needs to be supplied. Otherwise, a remote without voice support will be created.
For every audio session a new SiriAudioStreamProducer will be constructed.
constructor for a SiriAudioStreamProducer
if supplied this argument will be supplied as third argument of the SiriAudioStreamProducer constructor. This should be used to supply configurations to the stream producer.
Returns the targetIdentifier for a give device name
The targetIdentifier of the device or undefined if not existent.
The name of the device.
if the current target is active, meaning the active device is listening for button events or audio sessions
Checks if the supplied targetIdentifier is configured.
The target identifier.
Presses a supplied button for a given time.
button to be pressed and released
time in milliseconds (defaults to 200ms)
Sends a button event to press the supplied button.
button to be pressed
Sends a button event that the supplied button was released.
button which was released
Set a new target as active target. A value of 0 indicates that no target is selected currently.