Created
September 4, 2019 20:32
-
-
Save mayowa-egbewunmi/3da7fb9377ea0980aa100f123edfa388 to your computer and use it in GitHub Desktop.
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 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