Advertisement
Guest User

Untitled

a guest
May 25th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. val currentLocation: Observable<LatLong> = TODO("the platform API keeps sending signal to this object")
  2.  
  3. currentLocation.subscribeBy(
  4. onNext -> { latLong -> moveThePin(latLong) },
  5. onError -> { throwable -> TODO("tell user that current location is not retrievable or something") },
  6. onComplete -> { TODO("this is the end of the transmission, turn it off or something") })
  7.  
  8. fun moveThePin(latLong: LatLong) { TODO("move the Pin") }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement