Skip to content

Instantly share code, notes, and snippets.

@mayowa-egbewunmi
Created September 4, 2019 20:32
Show Gist options
  • Save mayowa-egbewunmi/3da7fb9377ea0980aa100f123edfa388 to your computer and use it in GitHub Desktop.
Save mayowa-egbewunmi/3da7fb9377ea0980aa100f123edfa388 to your computer and use it in GitHub Desktop.
class LocationLiveData(context: Context) : LiveData<LocationModel>() {
@SuppressLint("MissingPermission")
private fun startLocationUpdates() {
fusedLocationClient.requestLocationUpdates(
locationRequest,
locationCallback,
null
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment