IamUtil.pairPasswordInviteAsync()
DESCRIPTION
Perform Password Invite pairing asynchronously.
The specified AsyncIamResultReceiver closure is invoked with IamError.OK upon successful completion or with an error if an error occurs. See the pairPasswordInvite()
function for details about possible error codes.
DECLARATION
static public func pairPasswordInviteAsync(connection: Connection,
username: String,
password: String,
closure: @escaping AsyncIamResultReceiver)
PARAMETERS
connection:
- An established connection to the device this client should be paired with
username:
- Username for the invited user
password:
- Password for the invited user
closure:
- Invoked when the pairing attempt succeeds or fails.