Skip to content

Instantly share code, notes, and snippets.

@SeongUgJung
Created October 5, 2019 12:44
Show Gist options
  • Save SeongUgJung/21d4501fd91788aedb7ec88bddeccc7d to your computer and use it in GitHub Desktop.
Save SeongUgJung/21d4501fd91788aedb7ec88bddeccc7d to your computer and use it in GitHub Desktop.
class ExampleViewModel(private val locationProvider: LocationProvider,
private val latLongSnapInteractor: LatLongSnapInteractor) {
fun onInit(): Observable<LatLong> {
return locationProvider.latLong()
.doOnNext { latLongSnapInteractor.setLatLong(it) }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment