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.
Optional
audioProducerConstructor: SiriAudioStreamProducerConstructorconstructor for a SiriAudioStreamProducer
Optional
producerOptions: anyif 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 name of the device.
The targetIdentifier of the device or undefined if not existent.
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.
target identifier
Handles everything needed to implement a fully working HomeKit remote controller.