public class

IBeaconId

extends Object
java.lang.Object
   ↳ com.google.android.gms.nearby.messages.IBeaconId

Class Overview

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

Summary

Constants
int LENGTH Length of an iBeacon ID, in bytes.
Public Constructors
IBeaconId(UUID proximityUuid, short major, short minor)
Creates an iBeacon ID.
Public Methods
boolean equals(Object o)
static IBeaconId from(Message message)
Converts a Message of type MESSAGE_TYPE_I_BEACON_ID to an IBeaconId.
short getMajor()
short getMinor()
UUID getProximityUuid()
int hashCode()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

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

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