Package | com.distriqt.extension.bluetooth |
Class | public class BluetoothDevice |
Inheritance | BluetoothDevice ![]() |
This class represents a bluetooth device. It is used to return data from the extension about the available bluetooth devices.
Property | Defined By | ||
---|---|---|---|
address : String
The bluetooth address of the device, generally a hex string. | BluetoothDevice | ||
bluetoothClass : BluetoothClass = null
If available this "class" object gives additional information
about the device, such as whether the device is a phone or a
headset. | BluetoothDevice | ||
deviceName : String
The name of the bluetooth device. | BluetoothDevice | ||
state : String
The state of the device. | BluetoothDevice |
Method | Defined By | ||
---|---|---|---|
Constructor
| BluetoothDevice |
Constant | Defined By | ||
---|---|---|---|
SCAN_MODE_CONNECTABLE : String = scan:mode:connectable [static]
The device can receive and make connections but is not discoverable
| BluetoothDevice | ||
SCAN_MODE_CONNECTABLE_DISCOVERABLE : String = scan:mode:connectable:discoverable [static]
The device can receive and make connections and also can be discovered by other devices
| BluetoothDevice | ||
SCAN_MODE_NONE : String = scan:mode:none [static]
The device is not in a valid scan mode
| BluetoothDevice | ||
STATE_NOT_AVAILABLE : String = state:not:available [static]
The bluetooth device is not available at this time
| BluetoothDevice | ||
STATE_OFF : String = state:off [static]
The bluetooth device is swithed off
| BluetoothDevice | ||
STATE_ON : String = state:on [static]
The device is on
| BluetoothDevice | ||
STATE_TURNING_OFF : String = state:turning:off [static]
The device is powering off
| BluetoothDevice | ||
STATE_TURNING_ON : String = state:turning:on [static]
The device is turning on
| BluetoothDevice | ||
STATE_UNKNOWN : String = state:unknown [static]
The state of the device is unknown
| BluetoothDevice |
address | property |
public var address:String
The bluetooth address of the device, generally a hex string. This address identifies the device and is used in connection requests.
bluetoothClass | property |
public var bluetoothClass:BluetoothClass = null
If available this "class" object gives additional information about the device, such as whether the device is a phone or a headset.
deviceName | property |
public var deviceName:String
The name of the bluetooth device. This is the user set name given to their device.
state | property |
public var state:String
The state of the device.
BluetoothDevice | () | Constructor |
public function BluetoothDevice()
Constructor
SCAN_MODE_CONNECTABLE | Constant |
public static const SCAN_MODE_CONNECTABLE:String = scan:mode:connectable
The device can receive and make connections but is not discoverable
SCAN_MODE_CONNECTABLE_DISCOVERABLE | Constant |
public static const SCAN_MODE_CONNECTABLE_DISCOVERABLE:String = scan:mode:connectable:discoverable
The device can receive and make connections and also can be discovered by other devices
SCAN_MODE_NONE | Constant |
public static const SCAN_MODE_NONE:String = scan:mode:none
The device is not in a valid scan mode
STATE_NOT_AVAILABLE | Constant |
public static const STATE_NOT_AVAILABLE:String = state:not:available
The bluetooth device is not available at this time
STATE_OFF | Constant |
public static const STATE_OFF:String = state:off
The bluetooth device is swithed off
STATE_ON | Constant |
public static const STATE_ON:String = state:on
The device is on
STATE_TURNING_OFF | Constant |
public static const STATE_TURNING_OFF:String = state:turning:off
The device is powering off
STATE_TURNING_ON | Constant |
public static const STATE_TURNING_ON:String = state:turning:on
The device is turning on
STATE_UNKNOWN | Constant |
public static const STATE_UNKNOWN:String = state:unknown
The state of the device is unknown