SupportIotDeviceController

interface SupportIotDeviceController

Support interface for clients that are not using Kotlin Coroutines.

You can call the functions in this interface from any JVM language.

Functions

execute
Link copied to clipboard
abstract fun execute(stateChangeRequest: StateChangeRequest, callback: (Result<Unit>) -> Unit): Cancelable
abstract fun execute(stateChangeRequest: StateChangeRequest, lifecycleOwner: LifecycleOwner, callback: (Result<Unit>) -> Unit): Cancelable

Support function to executes the given StateChangeRequest.

getIotDevices
Link copied to clipboard
abstract fun getIotDevices(iotDeviceFilter: IotDeviceFilter? = null, propertyFilter: PropertyFilter? = null, updateIntervalMillis: Long = -1, callback: (Result<List<IotDevice>>) -> Unit): Cancelable
abstract fun getIotDevices(iotDeviceFilter: IotDeviceFilter? = null, propertyFilter: PropertyFilter? = null, updateIntervalMillis: Long = -1, lifecycleOwner: LifecycleOwner, callback: (Result<List<IotDevice>>) -> Unit): Cancelable
abstract fun getIotDevices(sorting: Sorting, iotDeviceFilter: IotDeviceFilter? = null, propertyFilter: PropertyFilter? = null, updateIntervalMillis: Long = -1, callback: (Result<List<IotDevice>>) -> Unit): Cancelable

Support function to get list of IotDevice.

getStatus
Link copied to clipboard
abstract fun getStatus(callback: (IotDeviceController.Status) -> Unit): Cancelable
abstract fun getStatus(lifecycleOwner: LifecycleOwner, callback: (IotDeviceController.Status) -> Unit): Cancelable

Support function to get the Status of this controller.

Inheritors

IotDeviceController
Link copied to clipboard