public static enum AdvertisingListener.Status extends java.lang.Enum<AdvertisingListener.Status> implements UsesCustomNull
BleServer.startAdvertising(BleScanRecord)
.Enum Constant and Description |
---|
ALREADY_STARTED |
ANDROID_VERSION_NOT_SUPPORTED |
BLE_NOT_ON |
CHIPSET_NOT_SUPPORTED |
DATA_TOO_LARGE |
INTERNAL_ERROR |
NULL |
NULL_SERVER |
SUCCESS |
TOO_MANY_ADVERTISERS |
Modifier and Type | Method and Description |
---|---|
static AdvertisingListener.Status |
fromNativeStatus(int bit) |
int |
getNativeStatus() |
boolean |
isNull()
Returns
true if the object's state represents what would otherwise be Java's built-in null . |
static AdvertisingListener.Status |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AdvertisingListener.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AdvertisingListener.Status SUCCESS
public static final AdvertisingListener.Status DATA_TOO_LARGE
public static final AdvertisingListener.Status TOO_MANY_ADVERTISERS
public static final AdvertisingListener.Status ALREADY_STARTED
public static final AdvertisingListener.Status INTERNAL_ERROR
public static final AdvertisingListener.Status ANDROID_VERSION_NOT_SUPPORTED
public static final AdvertisingListener.Status CHIPSET_NOT_SUPPORTED
public static final AdvertisingListener.Status BLE_NOT_ON
public static final AdvertisingListener.Status NULL_SERVER
public static final AdvertisingListener.Status NULL
public static AdvertisingListener.Status[] values()
for (AdvertisingListener.Status c : AdvertisingListener.Status.values()) System.out.println(c);
public static AdvertisingListener.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 final int getNativeStatus()
public static AdvertisingListener.Status fromNativeStatus(int bit)
public final boolean isNull()
UsesCustomNull
true
if the object's state represents what would otherwise be Java's built-in null
.isNull
in interface UsesCustomNull