Skip to content

davidgyoung/beacon-parsers

Repository files navigation

BeaconParsers

An Android library defining a variety of beacon parsers for use with the Android Beacon Library including:

  • IBeaconParser
  • EddystoneUidParser
  • EddystoneUrlParser
  • UrlBeaconParser

Setup

  1. Make sure the MavenCentral repository is in your top-level build.gradle file:
allprojects {
    repositories {
        google()
        mavenCentral()
    }
}
  1. 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+')
  1. 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)

License

Apache 2

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages