BluetoothGATTUnregisterEvent function bluetoothapis

void BluetoothGATTUnregisterEvent(
  1. int eventHandle,
  2. int flags
)

Unregisters the given characteristic value change event.

Throws a WindowsException on failure.

To learn more, see learn.microsoft.com/windows/win32/api/bluetoothleapis/nf-bluetoothleapis-bluetoothgattunregisterevent.

Implementation

@pragma('vm:prefer-inline')
void BluetoothGATTUnregisterEvent(int eventHandle, int flags) {
  final hr$ = HRESULT(_BluetoothGATTUnregisterEvent(eventHandle, flags));
  if (hr$.isError) throw WindowsException(hr$);
}