public enum AdvertiseError extends java.lang.Enum<AdvertiseError>
Enum Constant and Description |
---|
ALREADY_STARTED
Failed to start advertising as the advertising is already started.
|
DATA_TOO_LARGE
Failed to start advertising as the advertise data to be broadcasted is larger than 31 bytes.
|
FEATURE_UNSUPPORTED
This feature is not supported on this platform.
|
INTERNAL_ERROR
Operation failed due to an internal error.
|
TOO_MANY_ADVERTISERS
Failed to start advertising because no advertising instance is available.
|
UNKNOWN_ERROR |
Modifier and Type | Field and Description |
---|---|
int |
value |
Modifier and Type | Method and Description |
---|---|
static AdvertiseError |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AdvertiseError[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AdvertiseError DATA_TOO_LARGE
public static final AdvertiseError TOO_MANY_ADVERTISERS
public static final AdvertiseError ALREADY_STARTED
public static final AdvertiseError INTERNAL_ERROR
public static final AdvertiseError FEATURE_UNSUPPORTED
public static final AdvertiseError UNKNOWN_ERROR
public static AdvertiseError[] values()
for (AdvertiseError c : AdvertiseError.values()) System.out.println(c);
public static AdvertiseError 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 null