# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

# OutcomeReceiver

`public interface OutcomeReceiver`
``

android.os.OutcomeReceiver<R, E extends java.lang.Throwable>

Callback interface intended for use when an asynchronous operation may result in a failure. This interface may be used in cases where an asynchronous API may complete either with a value or with a `Throwable` that indicates an error.

## Summary

### Public methods
`default void` | `onError(E error)` Called when the asynchronous operation fails.
`abstract void` | `onResult(R result)` Called when the asynchronous operation succeeds and delivers a result value.

## Public methods

### onError

    public void onError (E error)

Called when the asynchronous operation fails. The mode of failure is indicated by the `Throwable` passed as an argument to this method.

Parameters
`error` | `E`: A subclass of `Throwable` with more details about the error that occurred. This value cannot be `null`.

### onResult

    public abstract void onResult (R result)

Called when the asynchronous operation succeeds and delivers a result value.

Parameters
`result` | `R`: The value delivered by the asynchronous operation. This value cannot be `null`.

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*