T - The type of result with which the callback should be executed.public interface Callback<T>
| Modifier and Type | Method and Description |
|---|---|
void |
call(T arg)
Call the callback with the specified argument.
|
void |
onError(Throwable err)
Call the callback with an error generated during an asynchronous task.
|
void call(@NonNull
T arg)
arg - The callback's argument.void onError(@NonNull
Throwable err)
err - An error generated instead of the callback's intended result.Copyright © 2021. All rights reserved.