public class BeaconRegion extends java.lang.Object implements Region, android.os.Parcelable
BeaconRegion's identifier is introduced similarly to CLBeaconRegion
's identifier to uniquely
identify region. You can use this identifier in the app to differentiate beaconRegions.
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<BeaconRegion> |
CREATOR |
Constructor and Description |
---|
BeaconRegion(java.lang.String identifier,
java.util.UUID proximityUUID,
java.lang.Integer major,
java.lang.Integer minor) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getIdentifier() |
java.lang.Integer |
getMajor() |
java.lang.Integer |
getMinor() |
java.util.UUID |
getProximityUUID() |
int |
hashCode() |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<BeaconRegion> CREATOR
public BeaconRegion(java.lang.String identifier, java.util.UUID proximityUUID, java.lang.Integer major, java.lang.Integer minor)
identifier
- A unique identifier for a region. Cannot be null.proximityUUID
- Location UUID of beacons. Can be null. Null indicates all location UUIDs.major
- Major version of the beacons. Can be null. Null indicates all major versions.minor
- Minor version of the beacons. Can be null. Null indicates all minor versions.public java.lang.String getIdentifier()
getIdentifier
in interface Region
public java.util.UUID getProximityUUID()
public java.lang.Integer getMajor()
public java.lang.Integer getMinor()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable