get Status
abstract fun getStatus(callback: (IotDeviceController.Status) -> Unit): Cancelable
Content copied to clipboard
Support function to get the Status of this controller.
Note: The purpose of this function is to support clients that can not use Coroutines or the Kotlin programming language!
Since
1.4.0
Return
Cancelable It is your responsibility to cancel this operation, when no longer needed, to avoid memory leaks.
Parameters
callback
with the Status of this controller.
abstract fun getStatus(lifecycleOwner: LifecycleOwner, callback: (IotDeviceController.Status) -> Unit): Cancelable
Content copied to clipboard
Support function to get the Status of this controller.
Note: The purpose of this function is to support clients that can not use Coroutines or the Kotlin programming language!
Since
1.9.0
Return
Cancelable In case you want to cancel before Lifecycle.State.DESTROYED
Parameters
lifecycle Owner
auto cancel the Cancelable when lifecycle state is Lifecycle.State.DESTROYED.
callback
with the Status of this controller.