public static enum BleSetupHelper.DefaultString extends java.lang.Enum<BleSetupHelper.DefaultString>
BleSetupHelper.BluetoothEnablerImpl.getString(com.idevicesinc.sweetblue.utils.BleSetupHelper.DefaultString)
method of the implementation class and return custom stringsEnum Constant and Description |
---|
ACCEPT
Used as the positive button on two button dialogs
|
APP_NEEDS_PERMISSION
Toast shown to users asking them to grant the location permission.
|
DENY
Used for the negative button of two button dialogs
|
DENYING_LOCATION_ACCESS
Dialog message telling the user what the consequences of denying the location permission are.
|
LOCATION_PERMISSION_TOAST
Toast shown to users asking them to grant the location permission.
|
LOCATION_SERVICES_NEEDS_ENABLING
Dialog message telling user why they should turn on location services
|
LOCATION_SERVICES_TOAST
Toast shown to users asking them to enable location services.
|
OK
Used for the positive button of single button dialogs
|
REQUIRES_LOCATION_PERMISSION
Dialog message telling user why the app needs location permission
|
REQUIRES_LOCATION_PERMISSION_AND_SERVICES
Dialog message telling user why the app needs location services permission, and location services to be enabled
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFallbackString() |
java.lang.String |
getStringId() |
static BleSetupHelper.DefaultString |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BleSetupHelper.DefaultString[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BleSetupHelper.DefaultString DENYING_LOCATION_ACCESS
public static final BleSetupHelper.DefaultString APP_NEEDS_PERMISSION
public static final BleSetupHelper.DefaultString LOCATION_PERMISSION_TOAST
public static final BleSetupHelper.DefaultString REQUIRES_LOCATION_PERMISSION
public static final BleSetupHelper.DefaultString REQUIRES_LOCATION_PERMISSION_AND_SERVICES
public static final BleSetupHelper.DefaultString LOCATION_SERVICES_NEEDS_ENABLING
public static final BleSetupHelper.DefaultString LOCATION_SERVICES_TOAST
public static final BleSetupHelper.DefaultString OK
public static final BleSetupHelper.DefaultString DENY
public static final BleSetupHelper.DefaultString ACCEPT
public static BleSetupHelper.DefaultString[] values()
for (BleSetupHelper.DefaultString c : BleSetupHelper.DefaultString.values()) System.out.println(c);
public static BleSetupHelper.DefaultString 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 java.lang.String getStringId()
public java.lang.String getFallbackString()