IamUtil.getUserAsync()

DESCRIPTION

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 getUser() function for details about possible error codes.

DECLARATION

    static public func getUserAsync(connection: Connection,
                                    username: String,
                                    closure: @escaping AsyncIamResultReceiverWithData<IamUser>) 

PARAMETERS

connection:
An established connection to the device
username:
Username of the user to get
closure:
Invoked when the user information is successfully retrieved or retrieval fails.