Remote Control
A generic remote control. This is the base class to manage a specific remote control.
Types
Functions
Link copied to clipboard
Connects the remote control.
abstract fun connect(connector: DeviceConnector, vararg parameters: ConnectionParameter): Boolean
Content copied to clipboard
Connects the remote control using the specified device connector and custom parameters.
Link copied to clipboard
Disconnects the remote control.
Link copied to clipboard
abstract fun <I : Instrument> getInstrument(instrumentClass: Class<I>): I?
Content copied to clipboard
Gets an instrument.
abstract fun <I : Instrument> getInstrument(instrumentClass: Class<I>, observer: Ref.Observer<I>): Ref<I>
Content copied to clipboard
Gets an instrument and registers an observer notified each time it changes.
Link copied to clipboard
abstract fun <T : Peripheral> getPeripheral(peripheralClass: Class<T>): T?
Content copied to clipboard
Gets a peripheral.
abstract fun <T : Peripheral> getPeripheral(peripheralClass: Class<T>, observer: Ref.Observer<T>): Ref<T>
Content copied to clipboard
Gets a peripheral and registers an observer notified each time it changes.
Link copied to clipboard
abstract fun getState(observer: Ref.Observer<DeviceState>): Ref<DeviceState>
Content copied to clipboard
Gets current remote control state and registers an observer notified each time it changes.