Class IBeaconData

java.lang.Object
com.blukii.sdk.discovery.IBeaconData
All Implemented Interfaces:
android.os.Parcelable

public final class IBeaconData extends Object implements android.os.Parcelable
Read only data object for iBeacon data that is emitted by beacons

See iBeacon specification at https://developer.apple.com/ibeacon

IBeaconData values are part of DiscoveryData.

See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface android.os.Parcelable

    android.os.Parcelable.ClassLoaderCreator<T extends Object>, android.os.Parcelable.Creator<T extends Object>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final android.os.Parcelable.Creator<IBeaconData>
     

    Fields inherited from interface android.os.Parcelable

    CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    int
    Gets the Major ID if the beacon is emitting iBeacon.
    short
    Gets the Measured Power RSSI value if the beacon is emitting iBeacon.
    int
    Gets the Minor ID if the beacon is emitting iBeacon.
    Gets the UUID if the beacon is emitting iBeacon.
    void
    writeToParcel(android.os.Parcel dest, int flags)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CREATOR

      public static final android.os.Parcelable.Creator<IBeaconData> CREATOR
  • Method Details

    • getUuid

      public UUID getUuid()
      Gets the UUID if the beacon is emitting iBeacon.
      Returns:
      UUID
    • getMajor

      public int getMajor()
      Gets the Major ID if the beacon is emitting iBeacon.
      Returns:
      Major ID
    • getMinor

      public int getMinor()
      Gets the Minor ID if the beacon is emitting iBeacon.
      Returns:
      Minor ID
    • getMeasuredPower

      public short getMeasuredPower()
      Gets the Measured Power RSSI value if the beacon is emitting iBeacon.

      It stands for the measured RSSI value when the distance between the beacon and the mobile device is 1 meter.

      Returns:
      Measured Power RSSI, Short.MIN_VALUE if it is not supported
    • describeContents

      public int describeContents()
      Specified by:
      describeContents in interface android.os.Parcelable
    • writeToParcel

      public void writeToParcel(android.os.Parcel dest, int flags)
      Specified by:
      writeToParcel in interface android.os.Parcelable