IBeaconId

public class IBeaconId extends Object

An iBeacon ID, which can be broadcast by BLE beacons and iOS devices.

Constant Summary

int LENGTH Length of an iBeacon ID, in bytes.

Public Constructor Summary

IBeaconId(UUID proximityUuid, short major, short minor)
Creates an iBeacon ID.

Public Method Summary

boolean
static IBeaconId
from(Message message)
Converts a Message of type Message.MESSAGE_TYPE_I_BEACON_ID to an IBeaconId.
short
getMajor()
Returns the major value.
short
getMinor()
Returns the minor value.
UUID
getProximityUuid()
Returns the proximity UUID.
int
String

Inherited Method Summary

Constants

public static final int LENGTH

Length of an iBeacon ID, in bytes. An iBeacon ID consists of a 16-byte proximity UUID, followed by a 2-byte major value and a 2-byte minor value.

Constant Value: 20

Public Constructors

public IBeaconId (UUID proximityUuid, short major, short minor)

Creates an iBeacon ID.

Public Methods

public boolean equals (Object o)

public static IBeaconId from (Message message)

public short getMajor ()

Returns the major value.

public short getMinor ()

Returns the minor value.

public UUID getProximityUuid ()

Returns the proximity UUID.

public int hashCode ()

public String toString ()