Iot Device Controller
Types
Status
Link copied to clipboard
sealed class Status
Content copied to clipboard
Base class for the possible statuses of the IotDeviceController
Functions
execute
Link copied to clipboard
abstract suspend fun execute(stateChangeRequest: StateChangeRequest): Result<Unit>
Content copied to clipboard
Executes the given StateChangeRequest.
abstract fun execute(stateChangeRequest: StateChangeRequest, callback: (Result<Unit>) -> Unit): Cancelable
Content copied to clipboard
abstract fun execute(stateChangeRequest: StateChangeRequest, lifecycleOwner: LifecycleOwner, callback: (Result<Unit>) -> Unit): Cancelable
Content copied to clipboard
Support function to executes the given StateChangeRequest.
get Iot Devices
Link copied to clipboard
abstract fun getIotDevices(iotDeviceFilter: IotDeviceFilter? = null, propertyFilter: PropertyFilter? = null, updateIntervalMillis: Long = -1): Flow<Result<List<IotDevice>>>
Content copied to clipboard
Content copied to clipboard
abstract fun getIotDevices(iotDeviceFilter: IotDeviceFilter? = null, propertyFilter: PropertyFilter? = null, updateIntervalMillis: Long = -1, callback: (Result<List<IotDevice>>) -> Unit): Cancelable
Content copied to clipboard
abstract fun getIotDevices(iotDeviceFilter: IotDeviceFilter? = null, propertyFilter: PropertyFilter? = null, updateIntervalMillis: Long = -1, lifecycleOwner: LifecycleOwner, callback: (Result<List<IotDevice>>) -> Unit): Cancelable
Content copied to clipboard
Content copied to clipboard
Support function to get list of IotDevice.
get Status
Link copied to clipboard
Get a Flow with the Status of this controller.
abstract fun getStatus(callback: (IotDeviceController.Status) -> Unit): Cancelable
Content copied to clipboard
abstract fun getStatus(lifecycleOwner: LifecycleOwner, callback: (IotDeviceController.Status) -> Unit): Cancelable
Content copied to clipboard
Support function to get the Status of this controller.