public static enum BleSetupHelper.ErrorCode extends java.lang.Enum<BleSetupHelper.ErrorCode>
BleSetupHelper.Result
. You can also check the error message in the BleSetupHelper.Result
for more information.Enum Constant and Description |
---|
CRITICAL_MISUSE
This code indicates that the enabler was misused and had to shut down.
|
INTERNAL_ERROR
This code indicates that the enabler malfunctioned in such a way that it could not continue normal operation.
|
LOST_ACTIVITY_OR_MANAGER
This code indicates that the
Activity or BleManager instance that we were given became null, which prevented the enabler from finishing |
UNKNOWN
This code should never be used.
|
USER_REJECTED
This code indicates that the user declined to grant a required permission
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDefaultErrorMessage() |
static BleSetupHelper.ErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BleSetupHelper.ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BleSetupHelper.ErrorCode USER_REJECTED
public static final BleSetupHelper.ErrorCode LOST_ACTIVITY_OR_MANAGER
Activity
or BleManager
instance that we were given became null, which prevented the enabler from finishingpublic static final BleSetupHelper.ErrorCode CRITICAL_MISUSE
public static final BleSetupHelper.ErrorCode INTERNAL_ERROR
public static final BleSetupHelper.ErrorCode UNKNOWN
public static BleSetupHelper.ErrorCode[] values()
for (BleSetupHelper.ErrorCode c : BleSetupHelper.ErrorCode.values()) System.out.println(c);
public static BleSetupHelper.ErrorCode 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 getDefaultErrorMessage()