IamUtil.getCurrentUserAsync()

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

DECLARATION

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

PARAMETERS

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