Kotlin: IamUtil.awaitIsCurrentUserPaired()

DESCRIPTION

Query if the current user is paired or not on a specific device.

This function is meant to be used in a Kotlin coroutine to suspend execution until the operation has completed.

DECLARATION

suspend fun IamUtil.awaitIsCurrentUserPaired(
    connection: Connection,
): Boolean 

PARAMETERS

connection:
An established connection to the device

THROWS EXCEPTIONS

IAM_NOT_SUPPORTED:
if Nabto Edge IAM is not supported by the device

RETURNS

true iff the current user is paired with the device