|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdanger.bluetooth.Bluetooth
public class Bluetooth
| Method Summary | |
|---|---|
static String |
getAddress()
EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.Return the address of this device. |
static boolean |
isOn()
EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.Return the current on/off status of the Bluetooth radio |
static void |
registerBluetoothEventsListener(Listener listener)
EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.Register for Bluetooth events Calling this will cause Bluetooth events to be sent to the listener. |
static void |
showPairingDialog()
EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.Display the pairing dialog to allow the user to pair with a device. |
static void |
unregisterBluetoothEventsListener(Listener listener)
EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.Unregister for Bluetooth events Calling this will unregister a previously registered listener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean isOn()
public static String getAddress()
public static void registerBluetoothEventsListener(Listener listener)
EventType.EVENT_BLUETOOTH_STATE_CHANGED
EventType.WHAT_BLUETOOTH_OFF
EventType.WHAT_BLUETOOTH_ON
listener - The listener the events will be sent to.public static void unregisterBluetoothEventsListener(Listener listener)
EventType.EVENT_BLUETOOTH_STATE_CHANGED
EventType.WHAT_BLUETOOTH_OFF
EventType.WHAT_BLUETOOTH_ON
listener - The listener to be unregistered.public static void showPairingDialog()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||