This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LocationTrackerServiceForeground: Service() { | |
private val UPDATE_INTERVAL_IN_MILLISECONDS: Long = 100 | |
private val FASTEST_UPDATE_INTERVAL_IN_MILLISECONDS = UPDATE_INTERVAL_IN_MILLISECONDS / 2 | |
lateinit var job: JobParameters | |
private lateinit var fusedLocationClient: FusedLocationProviderClient | |
private var mLocationCallback: LocationCallback? = null | |
private var mLocationRequest: LocationRequest? = null |