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.
This method adds and configures the remote services for a give accessory.
the give accessory this remote should be added to
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
Handles everything needed to implement a fully working HomeKit remote controller.