public static enum BluetoothEnabler.BluetoothEnablerFilter.Status extends java.lang.Enum<BluetoothEnabler.BluetoothEnablerFilter.Status> implements UsesCustomNull
BluetoothEnabler.BluetoothEnablerFilter.Stage
Enum Constant and Description |
---|
ALREADY_ENABLED
If the current stage has already been enabled on the device
|
CANCELLED_BY_DIALOG
If there was a dialog for the current state and the user declined (denied) the dialog.
|
CANCELLED_BY_INTENT
If the user accepted the dialog but didn't actually enable/grant the requested setting
|
ENABLED
If the user was prompted to enable a setting and they responded by enabling it
|
MANIFEST_PERMISSION_NEEDED
A permission is needed in your AndroidManifest.xml - for now this only applies to
BluetoothEnabler.BluetoothEnablerFilter.Stage.LOCATION_PERMISSION ,
which requires either Manifest.permission.ACCESS_COARSE_LOCATION or Manifest.permission.ACCESS_FINE_LOCATION . |
NOT_NEEDED
If the app wasn't compiled against
Build.VERSION_CODES.M then the BluetoothEnabler.BluetoothEnablerFilter.Stage.LOCATION_PERMISSION isn't needed
because the underlying function callActivity.requestPermissions(String[], int) doesn't exist for this SDK version. |
NULL
Fulfills the soft contract of
UsesCustomNull . |
SKIPPED
If the programmer of the application chose to skip a stage
|
STOPPED
If the programmer of the application chose to call
BluetoothEnabler.BluetoothEnablerFilter.Please.stop() . |
Modifier and Type | Method and Description |
---|---|
boolean |
isCancelled() |
boolean |
isNull()
|
static BluetoothEnabler.BluetoothEnablerFilter.Status |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BluetoothEnabler.BluetoothEnablerFilter.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
boolean |
wasPreviouslyNotEnabled() |
public static final BluetoothEnabler.BluetoothEnablerFilter.Status NULL
UsesCustomNull
.public static final BluetoothEnabler.BluetoothEnablerFilter.Status ALREADY_ENABLED
public static final BluetoothEnabler.BluetoothEnablerFilter.Status ENABLED
public static final BluetoothEnabler.BluetoothEnablerFilter.Status NOT_NEEDED
Build.VERSION_CODES.M
then the BluetoothEnabler.BluetoothEnablerFilter.Stage.LOCATION_PERMISSION
isn't needed
because the underlying function callActivity.requestPermissions(String[], int)
doesn't exist for this SDK version.public static final BluetoothEnabler.BluetoothEnablerFilter.Status CANCELLED_BY_DIALOG
public static final BluetoothEnabler.BluetoothEnablerFilter.Status CANCELLED_BY_INTENT
public static final BluetoothEnabler.BluetoothEnablerFilter.Status SKIPPED
public static final BluetoothEnabler.BluetoothEnablerFilter.Status MANIFEST_PERMISSION_NEEDED
BluetoothEnabler.BluetoothEnablerFilter.Stage.LOCATION_PERMISSION
,
which requires either Manifest.permission.ACCESS_COARSE_LOCATION
or Manifest.permission.ACCESS_FINE_LOCATION
.public static final BluetoothEnabler.BluetoothEnablerFilter.Status STOPPED
BluetoothEnabler.BluetoothEnablerFilter.Please.stop()
.public static BluetoothEnabler.BluetoothEnablerFilter.Status[] values()
for (BluetoothEnabler.BluetoothEnablerFilter.Status c : BluetoothEnabler.BluetoothEnablerFilter.Status.values()) System.out.println(c);
public static BluetoothEnabler.BluetoothEnablerFilter.Status valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isNull()
isNull
in interface UsesCustomNull
public boolean isCancelled()
public boolean wasPreviouslyNotEnabled()