Location Repository
fun LocationRepository( context: Context, defaultLocation: LatLng, shouldGetPermission: MutableLiveData<Boolean>, registerListener: (input: LocationUpdateListener) -> Unit)
Content copied to clipboard
defaultLocation: the default location to use if no location is available, shouldGetPermission: whether the permission to access the location should be requested, registerListener: a function to register a location listener