public enum DeviceType

  1. Object
  2. Enum<DeviceType>
  3. DeviceType

ImplementsComparable<DeviceType>

The transport family a remote BluetoothDevice supports, mirroring Android’s device-type classification. iOS only ever reports LE or UNKNOWN since CoreBluetooth does not expose classic devices.

Enum constants

CLASSICClassic (BR/EDR) only – reachable via RFCOMM but not BLE.
LEBluetooth Low Energy only.
DUALDual-mode device supporting both classic and LE transports.
UNKNOWNThe transport family has not been determined.

Methods

public static DeviceType[] values()
public static DeviceType valueOf(String name)

Inherited methods

Enum constant details

CLASSIC

CLASSIC
Classic (BR/EDR) only – reachable via RFCOMM but not BLE.

LE

LE
Bluetooth Low Energy only.

DUAL

DUAL
Dual-mode device supporting both classic and LE transports.

UNKNOWN

UNKNOWN
The transport family has not been determined.

Method details

values

public static DeviceType[] values()

valueOf

public static DeviceType valueOf(String name)