Class IBeacon

java.lang.Object
com.blukii.sdk.config.datatype.IBeacon

public final class IBeacon extends Object
This class represents data type IBeacon
See Also:
  • Constructor Details

    • IBeacon

      public IBeacon()
  • Method Details

    • getUuid

      public UUID getUuid()
      Gets the UUID.
      Returns:
      UUID
    • setUuid

      public void setUuid(@NonNull UUID uuid)
      Sets the UUID
      Parameters:
      uuid - the UUID
    • getMajor

      public int getMajor()
      Gets the Major ID.
      Returns:
      Major ID
    • setMajor

      public void setMajor(int major)
      Sets the Major ID.

      Value:

      • 0 - 65535
      Parameters:
      major - the major id
    • getMinor

      public int getMinor()
      Gets the Minor ID.
      Returns:
      Minor ID
    • setMinor

      public void setMinor(int minor)
      Sets the Minor ID.

      Value:

      • 0 - 65535
      Parameters:
      minor - the minor id
    • getMeasuredPower

      public short getMeasuredPower()
      Gets the Measured Power RSSI value.

      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
    • setMeasuredPower

      public void setMeasuredPower(short measuredPower)
      Sets the Measured Power

      Value:

      • -127 - 5
      Parameters:
      measuredPower - the measured power
    • validate

      public int validate()
      Validates the values contained in this object.

      This can be used when you create an object, to verify the values set.

      Returns:
      a state from Validation
    • equals

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object
    • toString

      @NonNull public String toString()
      Overrides:
      toString in class Object