# ActivityResultCallback

Artifact: [androidx.activity:activity](https://developer.android.com/jetpack/androidx/releases/activity) [View Source](https://cs.android.com/search?q=file:androidx/activity/result/ActivityResultCallback.kt+class:androidx.activity.result.ActivityResultCallback) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/activity#1.2.0)

*** ** * ** ***

<br />

```
fun interface ActivityResultCallback<O : Any?>
```

<br />

*** ** * ** ***

A type-safe callback to be called when an `https://developer.android.com/reference/android/app/Activity.html#onActivityResult(int, int, android.content.Intent)` is available.

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/activity/result/ActivityResultCallback#onActivityResult(kotlin.Any)(result: O)` Called when result is available |

## Public functions

### onActivityResult

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/activity#1.2.0)

```
fun onActivityResult(result: O): Unit
```

Called when result is available