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.
static public func getAvailablePairingModesAsync(connection: Connection, closure: @escaping AsyncIamResultReceiverWithData<[PairingMode]>)
- An established connection to the device
- Invoked when the list of available pairing modes is successfully retrieved or retrieval fails.