public static enum BleAdvertisingSettings.BleTransmissionPower extends java.lang.Enum<BleAdvertisingSettings.BleTransmissionPower>
AdvertiseSettings
.
This is only applicable for Android >= 5.0 OS levels.Enum Constant and Description |
---|
HIGH
Strict typing for
AdvertiseSettings.ADVERTISE_TX_POWER_HIGH . |
LOW
Strict typing for
AdvertiseSettings.ADVERTISE_TX_POWER_LOW . |
MEDIUM
Strict typing for
AdvertiseSettings.ADVERTISE_TX_POWER_MEDIUM . |
ULTRA_LOW
Strict typing for
AdvertiseSettings.ADVERTISE_TX_POWER_ULTRA_LOW . |
Modifier and Type | Method and Description |
---|---|
static BleAdvertisingSettings.BleTransmissionPower |
fromNative(int nativePower) |
int |
getNativeMode()
Returns one of the static final int members of
AdvertiseSettings |
static BleAdvertisingSettings.BleTransmissionPower |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BleAdvertisingSettings.BleTransmissionPower[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BleAdvertisingSettings.BleTransmissionPower ULTRA_LOW
AdvertiseSettings.ADVERTISE_TX_POWER_ULTRA_LOW
.public static final BleAdvertisingSettings.BleTransmissionPower LOW
AdvertiseSettings.ADVERTISE_TX_POWER_LOW
.public static final BleAdvertisingSettings.BleTransmissionPower MEDIUM
AdvertiseSettings.ADVERTISE_TX_POWER_MEDIUM
.public static final BleAdvertisingSettings.BleTransmissionPower HIGH
AdvertiseSettings.ADVERTISE_TX_POWER_HIGH
.public static BleAdvertisingSettings.BleTransmissionPower[] values()
for (BleAdvertisingSettings.BleTransmissionPower c : BleAdvertisingSettings.BleTransmissionPower.values()) System.out.println(c);
public static BleAdvertisingSettings.BleTransmissionPower 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
public static BleAdvertisingSettings.BleTransmissionPower fromNative(int nativePower)