public static enum BleSetupHelper.Permission extends java.lang.Enum<BleSetupHelper.Permission>
Enum Constant and Description |
---|
BLUETOOTH
The Bluetooth permission...
|
CUSTOM
Custom permission, this has no built in implementation.
|
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getIsLocationRelated() |
int |
getRequestCode() |
static BleSetupHelper.Permission |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BleSetupHelper.Permission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BleSetupHelper.Permission BLUETOOTH
public static final BleSetupHelper.Permission LOCATION_PERMISSION
Build.VERSION_CODES.M
.public static final BleSetupHelper.Permission LOCATION_SERVICES
Build.VERSION_CODES.M
; otherwise, SweetBlue will default to classic scanning.public static final BleSetupHelper.Permission CUSTOM
BleSetupHelper.PermissionInstance
public static BleSetupHelper.Permission[] values()
for (BleSetupHelper.Permission c : BleSetupHelper.Permission.values()) System.out.println(c);
public static BleSetupHelper.Permission 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 int getRequestCode()
public boolean getIsLocationRelated()