IamUtil.isCurrentUserPairedAsync()

DESCRIPTION

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

The specified AsyncIamResultReceiver closure is invoked with IamError.OK and a boolean query result upon successful completion or with an error if an error occurs. See the isCurrentUserPaired() function for details about possible error codes.

DECLARATION

    static public func isCurrentUserPairedAsync(connection: Connection,
                                                closure: @escaping AsyncIamResultReceiverWithData<Bool>) 

PARAMETERS

connection:
An established connection to the device
closure:
Invoked when the pairing information is successfully retrieved or retrieval fails.

ERRORS

Throws the following errors:

None.

RETURN VALUES

None.

EXAMPLES

None.