public static enum BleAdvertisingSettings.BleAdvertisingMode extends java.lang.Enum<BleAdvertisingSettings.BleAdvertisingMode>
AdvertiseSettings
.
This is only applicable for Android >= 5.0 OS levels.Enum Constant and Description |
---|
AUTO
This option is recommended and will let SweetBlue automatically choose what advertising mode to use
based on whether the app is backgrounded, and if we're doing a continuous, or short-term advertisement
|
HIGH_FREQUENCY
Strict typing for
AdvertiseSettings.ADVERTISE_MODE_LOW_LATENCY . |
LOW_FREQUENCY
Strict typing for
AdvertiseSettings.ADVERTISE_MODE_LOW_POWER . |
MEDIUM_FREQUENCY
Strict typing for
AdvertiseSettings.ADVERTISE_MODE_BALANCED . |
Modifier and Type | Method and Description |
---|---|
static BleAdvertisingSettings.BleAdvertisingMode |
fromNative(int nativeMode) |
int |
getNativeMode()
Returns one of the static final int members of
AdvertiseSettings , or -1 for AUTO . |
static BleAdvertisingSettings.BleAdvertisingMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BleAdvertisingSettings.BleAdvertisingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BleAdvertisingSettings.BleAdvertisingMode AUTO
public static final BleAdvertisingSettings.BleAdvertisingMode LOW_FREQUENCY
AdvertiseSettings.ADVERTISE_MODE_LOW_POWER
.public static final BleAdvertisingSettings.BleAdvertisingMode MEDIUM_FREQUENCY
AdvertiseSettings.ADVERTISE_MODE_BALANCED
.public static final BleAdvertisingSettings.BleAdvertisingMode HIGH_FREQUENCY
AdvertiseSettings.ADVERTISE_MODE_LOW_LATENCY
.public static BleAdvertisingSettings.BleAdvertisingMode[] values()
for (BleAdvertisingSettings.BleAdvertisingMode c : BleAdvertisingSettings.BleAdvertisingMode.values()) System.out.println(c);
public static BleAdvertisingSettings.BleAdvertisingMode 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 getNativeMode()
AdvertiseSettings
, or -1 for AUTO
.public static BleAdvertisingSettings.BleAdvertisingMode fromNative(int nativeMode)