Packagecom.distriqt.extension.bluetooth
Classpublic class BluetoothDevice
InheritanceBluetoothDevice Inheritance Object

This class represents a bluetooth device. It is used to return data from the extension about the available bluetooth devices.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
Constructor
BluetoothDevice
Public Constants
 ConstantDefined 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
Property Detail
addressproperty
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.

bluetoothClassproperty 
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.

deviceNameproperty 
public var deviceName:String

The name of the bluetooth device. This is the user set name given to their device.

stateproperty 
public var state:String

The state of the device.

Constructor Detail
BluetoothDevice()Constructor
public function BluetoothDevice()

Constructor

Constant Detail
SCAN_MODE_CONNECTABLEConstant
public static const SCAN_MODE_CONNECTABLE:String = scan:mode:connectable

The device can receive and make connections but is not discoverable

SCAN_MODE_CONNECTABLE_DISCOVERABLEConstant 
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_NONEConstant 
public static const SCAN_MODE_NONE:String = scan:mode:none

The device is not in a valid scan mode

STATE_NOT_AVAILABLEConstant 
public static const STATE_NOT_AVAILABLE:String = state:not:available

The bluetooth device is not available at this time

STATE_OFFConstant 
public static const STATE_OFF:String = state:off

The bluetooth device is swithed off

STATE_ONConstant 
public static const STATE_ON:String = state:on

The device is on

STATE_TURNING_OFFConstant 
public static const STATE_TURNING_OFF:String = state:turning:off

The device is powering off

STATE_TURNING_ONConstant 
public static const STATE_TURNING_ON:String = state:turning:on

The device is turning on

STATE_UNKNOWNConstant 
public static const STATE_UNKNOWN:String = state:unknown

The state of the device is unknown