IamUtil.isCurrentUserPaired()

DESCRIPTION

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

DECLARATION

    static public func isCurrentUserPaired(connection: Connection) throws -> Bool 

PARAMETERS

connection:
An established connection to the device

ERRORS

Throws the following errors:

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

RETURN VALUES

true iff the current user is paired with the device

EXAMPLES

None.