Asynchronously get details about a specific user.
The specified AsyncIamResultReceiver closure is invoked with IamError.OK and an IamUser object upon
successful completion or with an error if an error occurs. See the
getCurrentUser() function for
details about possible error codes.
static public func getCurrentUserAsync(connection: Connection, closure: @escaping AsyncIamResultReceiverWithData<IamUser>)
- An established connection to the device
- Invoked when the user information is successfully retrieved or retrieval fails.