summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothDevicePicker.java
diff options
context:
space:
mode:
authorEtienne Ruffieux <eruffieux@google.com>2022-03-09 16:26:58 +0000
committerEtienne Ruffieux <eruffieux@google.com>2022-03-16 10:05:30 +0000
commit1abdad167ea07b0402fa5acdfbc1d3a66afb2697 (patch)
tree5b7e4d59ec912b101e51e9c6168b7b31d5124837 /framework/java/android/bluetooth/BluetoothDevicePicker.java
parent980a4a61104202912924ca0204da07bb5926732f (diff)
Updated documentation for new Bluetooth SystemApis
Bug: 223356348 Test: build (only doc modified) Tag: #feature Change-Id: I89606d0905d44dd85ae57104da260ce51e8c1568
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothDevicePicker.java')
-rw-r--r--framework/java/android/bluetooth/BluetoothDevicePicker.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/framework/java/android/bluetooth/BluetoothDevicePicker.java b/framework/java/android/bluetooth/BluetoothDevicePicker.java
index d17ab8d72a..d1fc0622e4 100644
--- a/framework/java/android/bluetooth/BluetoothDevicePicker.java
+++ b/framework/java/android/bluetooth/BluetoothDevicePicker.java
@@ -30,15 +30,37 @@ import android.bluetooth.annotations.RequiresBluetoothConnectPermission;
*/
@SystemApi
public interface BluetoothDevicePicker {
+
+ /**
+ * Extra for filter type used with {@link #ACTION_LAUNCH}.
+ * The value must be a boolean indicating whether the device should need authentication or not.
+ */
@SuppressLint("ActionValue")
public static final String EXTRA_NEED_AUTH =
"android.bluetooth.devicepicker.extra.NEED_AUTH";
+
+ /**
+ * Extra for filter type used with {@link #ACTION_LAUNCH}.
+ * This extra must contain the filter type that will be applied to the device list.
+ * Possible values are {@link #FILTER_TYPE_ALL}, {@link #FILTER_TYPE_AUDIO},
+ * {@link #FILTER_TYPE_TRANSFER}, {@link #FILTER_TYPE_PANU}, and {@link #FILTER_TYPE_NAP}.
+ */
@SuppressLint("ActionValue")
public static final String EXTRA_FILTER_TYPE =
"android.bluetooth.devicepicker.extra.FILTER_TYPE";
+
+ /**
+ * Extra for filter type used with {@link #ACTION_LAUNCH}.
+ * This extra must contain the package name that called {@link #ACTION_LAUNCH}.
+ */
@SuppressLint("ActionValue")
public static final String EXTRA_LAUNCH_PACKAGE =
"android.bluetooth.devicepicker.extra.LAUNCH_PACKAGE";
+
+ /**
+ * Extra for filter type used with {@link #ACTION_LAUNCH}.
+ * This extra must contain the class name that called {@link #ACTION_LAUNCH}.
+ */
@SuppressLint("ActionValue")
public static final String EXTRA_LAUNCH_CLASS =
"android.bluetooth.devicepicker.extra.DEVICE_PICKER_LAUNCH_CLASS";