Skip to content

Instantly share code, notes, and snippets.

langleyd / ExampleUse.kt
Last active Mar 14, 2017
Reactive extensions for GoogleApiClient using Kotlin/RxJava
View ExampleUse.kt
/* Example use of the GoogleApiClient reatcive extions sketched out below and how we can use them to
* 1. Create an api client
* 2. Make a couple of serial api calls
* 3. Clean up the api client
// Let's create a refernce to a lambda we can use to clean up the client when we are finished with it.
var destroy: (() -> Unit)? = null
//Create our api client with the APIs we need to use