public enum AdvertiseMode

  1. Object
  2. Enum<AdvertiseMode>
  3. AdvertiseMode

ImplementsComparable<AdvertiseMode>

Advertising-interval trade-off, mirroring Android’s advertise modes. Platforms without the control (iOS) treat it as a hint.

Enum constants

LOW_POWERLong advertising interval; lowest power, slowest discovery by centrals.
BALANCEDThe default balance.
LOW_LATENCYShort advertising interval for the fastest discovery; highest power draw.

Methods

public static AdvertiseMode[] values()
public static AdvertiseMode valueOf(String name)

Inherited methods

Enum constant details

LOW_POWER

LOW_POWER
Long advertising interval; lowest power, slowest discovery by centrals.

BALANCED

BALANCED
The default balance.

LOW_LATENCY

LOW_LATENCY
Short advertising interval for the fastest discovery; highest power draw.

Method details

values

public static AdvertiseMode[] values()

valueOf

public static AdvertiseMode valueOf(String name)