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_TYPE_I_BEACON_ID to an IBeaconId.
short
short
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)

Converts a Message of type MESSAGE_TYPE_I_BEACON_ID to an IBeaconId.

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 ()