Created
October 5, 2019 12:44
-
-
Save SeongUgJung/21d4501fd91788aedb7ec88bddeccc7d to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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