IamUtil.getAvailablePairingModesAsync()
DESCRIPTION
Retrieve a list of the available pairing modes on the device asynchronously.
The specified AsyncIamResultReceiver closure is invoked with IamError.OK and resulting data upon successful completion or with an error if an error occurs. See the getAvailablePairingModes()
function for details about possible error codes.
DECLARATION
static public func getAvailablePairingModesAsync(connection: Connection,
closure: @escaping AsyncIamResultReceiverWithData<[PairingMode]>)
PARAMETERS
connection:
- An established connection to the device
closure:
- Invoked when the list of available pairing modes is successfully retrieved or retrieval fails.