aboutsummaryrefslogtreecommitdiffstats
path: root/java/BluetoothManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/BluetoothManager.java')
-rw-r--r--java/BluetoothManager.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/java/BluetoothManager.java b/java/BluetoothManager.java
index 0c415d6..489ac3e 100644
--- a/java/BluetoothManager.java
+++ b/java/BluetoothManager.java
@@ -195,6 +195,14 @@ public class BluetoothManager
*/
public native boolean setDefaultAdapter(BluetoothAdapter adapter);
+ /** Gets the default adapter to use for discovery.
+ * <p>
+ * System default is the last detected adapter at initialisation.
+ * </p>
+ * @return the used default adapter
+ */
+ public native BluetoothAdapter getDefaultAdapter();
+
/** Turns on device discovery on the default adapter if it is disabled.
* @return TRUE if discovery was successfully enabled
*/