public static enum BluetoothEnabler.BluetoothEnablerFilter.Stage extends java.lang.Enum<BluetoothEnabler.BluetoothEnablerFilter.Stage> implements UsesCustomNull
BluetoothEnabler.BluetoothEnablerFilter.BluetoothEnablerEvent
to denote
what the current stage as well as in BluetoothEnabler.BluetoothEnablerFilter.BluetoothEnablerEvent.nextStage()
to give the following stage to the current one.Enum Constant and Description |
---|
BLUETOOTH
Used when checking if the device needs Bluetooth turned on and enabling Bluetooth if it is disabled.
|
LOCATION_PERMISSION
Used when checking and requesting location permissions from the user.
|
LOCATION_SERVICES
Used when checking if the device needs Location services turned on and enabling Location services if they are disabled.
|
NULL
Fulfills the soft contract of
UsesCustomNull . |
START
The initial enabling stage.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isLast() |
boolean |
isLocationRelated() |
boolean |
isNull()
Returns
true if the object's state represents what would otherwise be Java's built-in null . |
static BluetoothEnabler.BluetoothEnablerFilter.Stage |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BluetoothEnabler.BluetoothEnablerFilter.Stage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BluetoothEnabler.BluetoothEnablerFilter.Stage NULL
UsesCustomNull
.public static final BluetoothEnabler.BluetoothEnablerFilter.Stage START
BLUETOOTH
.public static final BluetoothEnabler.BluetoothEnablerFilter.Stage BLUETOOTH
public static final BluetoothEnabler.BluetoothEnablerFilter.Stage LOCATION_PERMISSION
Build.VERSION_CODES.M
.public static final BluetoothEnabler.BluetoothEnablerFilter.Stage LOCATION_SERVICES
Build.VERSION_CODES.M
; otherwise, SweetBlue will default to classic scanning.public static BluetoothEnabler.BluetoothEnablerFilter.Stage[] values()
for (BluetoothEnabler.BluetoothEnablerFilter.Stage c : BluetoothEnabler.BluetoothEnablerFilter.Stage.values()) System.out.println(c);
public static BluetoothEnabler.BluetoothEnablerFilter.Stage 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()
UsesCustomNull
true
if the object's state represents what would otherwise be Java's built-in null
.isNull
in interface UsesCustomNull
public boolean isLast()
public boolean isLocationRelated()