AdServicesOutcomeReceiver
interfaceAdServicesOutcomeReceiver<R : Any!, E : Throwable!>
| android.adservices.common.AdServicesOutcomeReceiver | 
Callback interface intended for use when an asynchronous operation may result in a failure. Exact copy of the android.os.OutcomeReceiver class, re-defined in the AdServices package for backwards compatibility to Android R. 
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 | |
|---|---|
| open Unit | onError(error: E)Called when the asynchronous operation fails. | 
| abstract Unit | onResult(result: R)Called when the asynchronous operation succeeds and delivers a result value. | 
Public methods
onError
open funonError(error: E): Unit
Deprecated: Deprecated in Java.
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 Throwablewith more details about the error that occurred. This value cannot benull. | 
onResult
abstract funonResult(result: R): Unit
Deprecated: Deprecated in Java.
Called when the asynchronous operation succeeds and delivers a result value.
| Parameters | |
|---|---|
| result | R: The value delivered by the asynchronous operation. | 
