Skip to content

Instantly share code, notes, and snippets.

@finnkvan
Last active October 13, 2018 19:10
Show Gist options
  • Save finnkvan/2cbb89f29993312ca5158dd93d2b76c3 to your computer and use it in GitHub Desktop.
Save finnkvan/2cbb89f29993312ca5158dd93d2b76c3 to your computer and use it in GitHub Desktop.
ActivityResultObserver
package com.pivincii.blogging.activityresult
interface ActivityResultObservable {
fun addObserver(activityResultObserver: ActivityResultObserver)
fun removeObserver(activityResultObserver: ActivityResultObserver)
}
package com.pivincii.blogging.activityresult
import android.content.Intent
interface ActivityResultObserver {
fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment