Devices

Defines all the APIs for discovering and managing the user's devices. Also, it extends the registration phase when the user's msisdn has already a registered account.

These APIs are not considered part of the device-set-up APIs.

Functions

Link copied to clipboard

Blocking-call variant of Devices.getDevices.

Link copied to clipboard
abstract suspend fun getDevices(targetAccount: UUID): HubPayload<List<Device>>

Retrieves all devices from the account that matches the given uuid.

Link copied to clipboard
fun <T> HubClientCoroutineContextStrategy.runBlockingWithContext(block: suspend CoroutineScope.() -> T): T

Runs a new coroutine in HubClientCoroutineContextStrategy.clientCoroutineContext context and blocks the current thread until its completion. This function should not be used from a coroutine.

Properties

Link copied to clipboard

The hubClient's-coroutine-context. It can be used to explicit define in which CoroutineContext the new client will run.