# OutcomeReceiverCompat

Artifact: [androidx.webkit:webkit](https://developer.android.com/jetpack/androidx/releases/webkit) [View Source](https://cs.android.com/search?q=file:androidx/webkit/OutcomeReceiverCompat.java+class:androidx.webkit.OutcomeReceiverCompat) Added in [1.13.0](https://developer.android.com/jetpack/androidx/releases/webkit#1.13.0) Deprecated in [1.16.0](https://developer.android.com/jetpack/androidx/releases/webkit#1.16.0)

*** ** * ** ***


```
@Profile.ExperimentalUrlPrefetch
interface OutcomeReceiverCompat<T, E : Throwable?> : WebViewOutcomeReceiver<T!, E!>
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This interface is deprecated.**   
>
> The `OutcomeReceiverCompat` name clashes with the same class in `
> androidx.core`, so the webkit library version was renamed to avoid confusion. Clients should migrate to the new name. This class will only be maintained until the APIs that originally used the name are no longer considered experimental.

Transition interface for `https://developer.android.com/reference/kotlin/androidx/webkit/WebViewOutcomeReceiver` to support renaming in client code.

| Parameters |
|---|---|
| `<T>` | The type of the result that's being sent. |
| `<E : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html?>` | The type of the `https://developer.android.com/reference/java/lang/Throwable.html` that contains more information about the error. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/webkit/WebViewOutcomeReceiver` |   |

## Summary

### Inherited functions

From [androidx.webkit.WebViewOutcomeReceiver](https://developer.android.com/reference/kotlin/androidx/webkit/WebViewOutcomeReceiver) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onError](https://developer.android.com/reference/kotlin/androidx/webkit/WebViewOutcomeReceiver#onError(E))(error: E)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onResult](https://developer.android.com/reference/kotlin/androidx/webkit/WebViewOutcomeReceiver#onResult(T))(result: T!)`

**This function is deprecated.** Deprecated in Java