diff options
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothDevicePicker.java')
-rw-r--r-- | framework/java/android/bluetooth/BluetoothDevicePicker.java | 22 |
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"; |