aboutsummaryrefslogtreecommitdiffstats
path: root/java/BluetoothAdapter.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/BluetoothAdapter.java')
-rw-r--r--java/BluetoothAdapter.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/java/BluetoothAdapter.java b/java/BluetoothAdapter.java
index 5b96c5b..45c3e95 100644
--- a/java/BluetoothAdapter.java
+++ b/java/BluetoothAdapter.java
@@ -117,6 +117,9 @@ public class BluetoothAdapter extends BluetoothObject
*/
public native boolean getPowered();
+ public native void enablePoweredNotifications(BluetoothNotification<Boolean> powered);
+ public native void disablePoweredNotifications();
+
/** Sets the power state the adapter.
*/
public native void setPowered(boolean value);
@@ -126,6 +129,9 @@ public class BluetoothAdapter extends BluetoothObject
*/
public native boolean getDiscoverable();
+ public native void enableDiscoverableNotifications(BluetoothNotification<Boolean> discoverable);
+ public native void disableDiscoverableNotifications();
+
/** Sets the discoverable state the adapter.
*/
public native void setDiscoverable(boolean value);
@@ -145,6 +151,9 @@ public class BluetoothAdapter extends BluetoothObject
*/
public native boolean getPairable();
+ public native void enablePairableNotifications(BluetoothNotification<Boolean> pairable);
+ public native void disablePairableNotifications();
+
/** Sets the discoverable state the adapter.
*/
public native void setPairable(boolean value);
@@ -165,6 +174,9 @@ public class BluetoothAdapter extends BluetoothObject
*/
public native boolean getDiscovering();
+ public native void enableDiscoveringNotifications(BluetoothNotification<Boolean> discovering);
+ public native void disableDiscoveringNotifications();
+
/** Returns the UUIDs of the adapter.
* @return Array containing the UUIDs of the adapter, ends with NULL.
*/