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 |
| 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 android.os.Parcelable.Creator<BeaconRegion> |
CREATOR |
static BeaconRegion |
EVERYWHERE
Default region for scan.
|
| Modifier and Type | Method and Description |
|---|---|
static BeaconRegion.Builder |
builder() |
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(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<BeaconRegion> CREATOR
public static final int ANY_MAJOR
public static final int ANY_MINOR
public static final BeaconRegion EVERYWHERE
public static BeaconRegion.Builder builder()
public java.util.UUID getProximity()
getProximity in interface IBeaconRegionpublic int getMajor()
getMajor in interface IBeaconRegionpublic int getMinor()
getMinor in interface IBeaconRegionpublic java.lang.String getIdentifier()
getIdentifier in interface IBeaconRegionpublic boolean isShuffled()
isShuffled in interface IBeaconRegionpublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelablepublic int describeContents()
describeContents in interface android.os.Parcelablepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object