public class BeaconRegion extends java.lang.Object implements IBeaconRegion
If you want to scan only for Proximity UUID, you can set major to ANY_MAJOR
and minor to ANY_MINOR
Example usage:
BeaconRegion region = new BeaconRegion.Builder() .setProximity(KontaktSDK.DEFAULT_KONTAKT_BEACON_PROXIMITY_UUID) .setMajor(ANY_MAJOR) .setMinor(ANY_MINOR) .setShuffled(false) .setIdentifier("Everywhere") .build();
Modifier and Type | Class and Description |
---|---|
static class |
BeaconRegion.Builder
Builder class used for creating BeaconRegion object
|
Modifier and Type | Field and Description |
---|---|
static int |
ANY_MAJOR
Value marking than any major is acceptable
|
static int |
ANY_MINOR
Value marking than any minor is acceptable
|
static <any> |
CREATOR |
static BeaconRegion |
EVERYWHERE
Default region for scan.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getIdentifier() |
int |
getMajor() |
int |
getMinor() |
java.util.UUID |
getProximity() |
int |
hashCode() |
boolean |
isShuffled() |
void |
writeToParcel(Parcel dest,
int flags) |
public static final <any> CREATOR
public static final int ANY_MAJOR
public static final int ANY_MINOR
public static final BeaconRegion EVERYWHERE
public java.util.UUID getProximity()
getProximity
in interface IBeaconRegion
public int getMajor()
getMajor
in interface IBeaconRegion
public int getMinor()
getMinor
in interface IBeaconRegion
public java.lang.String getIdentifier()
getIdentifier
in interface IBeaconRegion
public boolean isShuffled()
isShuffled
in interface IBeaconRegion
public void writeToParcel(Parcel dest, int flags)
public int describeContents()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object