identifier property

int get identifier

The integer identifier used when communicating this priority over the method channel.

The values match the Android BluetoothGatt CONNECTION_PRIORITY_* constants.

  • balanced → 0
  • high → 1
  • lowPower → 2

Implementation

int get identifier {
  switch (this) {
    case BleConnectionPriority.balanced:
      return 0;
    case BleConnectionPriority.high:
      return 1;
    case BleConnectionPriority.lowPower:
      return 2;
  }
}