An Android library defining a variety of beacon parsers for use with the Android Beacon Library including:
- IBeaconParser
- EddystoneUidParser
- EddystoneUrlParser
- UrlBeaconParser
- Make sure the MavenCentral repository is in your top-level build.gradle file:
allprojects {
repositories {
google()
mavenCentral()
}
}
- Add the an import to your build.gradle file next to where you import the Android Beacon Library:
implementation('com.davidgyoungtech:beacon-parsers:1.0')
implementation('org.altbeacon:android-beacon-library:2+')
- Access the beacon parsers in your source code like this:
import com.davidgyoungtech.beaconparsers.*
...
val region = BeaconRegion("wildcard iBeacon", IBeaconParser(), null, null, null)
val region2 = BeaconRegion("wildcard Eddystone UID", EddystoneUidParser(), null, null, null)
val region3 = BeaconRegion("wildcard iBeacon", EddystoneUrlParser(), null, null, null)
Apache 2