Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val currentLocation: Observable<LatLong> = TODO("the platform API keeps sending signal to this object")
- currentLocation.subscribeBy(
- onNext -> { latLong -> moveThePin(latLong) },
- onError -> { throwable -> TODO("tell user that current location is not retrievable or something") },
- onComplete -> { TODO("this is the end of the transmission, turn it off or something") })
- fun moveThePin(latLong: LatLong) { TODO("move the Pin") }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement