CheckInManager
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
Constructors
Link copied to clipboard
constructor(snabble: Snabble, locationManager: CheckInLocationManager, checkInRadius: Float = 500.0f, checkOutRadius: Float = 1000.0f, lastSeenThreshold: Long = TimeUnit.MINUTES.toMillis(15))
Properties
Link copied to clipboard
Potential list of shops, if in range of multiple shops. To select a shop of multiple candidates you need to call setShop.
Link copied to clipboard
The time at which the last successful check in was made. Updates itself to the current time while still inside the check in/out radius
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
fun removeOnCheckInStateChangedListener(onCheckInStateChangedListener: OnCheckInStateChangedListener)
Link copied to clipboard
@RequiresPermission(anyOf = ["android.permission.ACCESS_FINE_LOCATION", "android.permission.ACCESS_COARSE_LOCATION"] )
Starts tracking user's location using gps and network providers.
Link copied to clipboard