StaleStateManager

Class controls the location stale state when the android.location.Location hasn't been updated in 'x' amount of time. staleStateTimeout can be used to control the amount of time before the location's considered stale. enableStaleState is available for disabling this behaviour.

open class StaleStateManager

Constructors

StaleStateManager
Link copied to clipboard
open fun StaleStateManager(innerListener: OnLocationStaleListener, options: LocationComponentOptions)

Functions

onStart
Link copied to clipboard
open fun onStart()
onStop
Link copied to clipboard
open fun onStop()
setEnabled
Link copied to clipboard
open fun setEnabled(enabled: Boolean)
updateLatestLocationTime
Link copied to clipboard
open fun updateLatestLocationTime()

Properties

delayTime
Link copied to clipboard
private open var delayTime: Long
isStale
Link copied to clipboard
private open val isStale: Boolean