Package-level declarations

Types

Link copied to clipboard
class CheckInLocationManager(val application: Application)

Location manager used by the check in manager. Periodically polls location after calling startTrackingLocation and stores it in location live data

Link copied to clipboard
class CheckInManager(val snabble: Snabble, val locationManager: CheckInLocationManager, var checkInRadius: Float = 500.0f, var checkOutRadius: Float = 1000.0f, var lastSeenThreshold: Long = TimeUnit.MINUTES.toMillis(15))

Provides functionality for checking in at shops using the users Location

Link copied to clipboard

Listener for check in states. Notifies about check in / check out and if multiple shops are available in the same area

Functions

Link copied to clipboard
fun isBetterLocation(location: Location, currentBestLocation: Location?): Boolean

Determines whether one Location reading is better than the current Location fix