| Constructor and Description |
|---|
RunnableCallback(java.lang.Runnable onSuccess,
Consumer<org.ocast.sdk.core.models.OCastError> onError)
Creates an instance of
class RunnableCallback. |
| Modifier and Type | Method and Description |
|---|---|
Consumer<org.ocast.sdk.core.models.OCastError> |
getOnError()
The operation executed if the task failed.
|
java.lang.Runnable |
getOnSuccess()
The operation executed if the task succeeded.
|
public RunnableCallback(@NotNull
java.lang.Runnable onSuccess,
@NotNull
Consumer<org.ocast.sdk.core.models.OCastError> onError)
Creates an instance of class RunnableCallback.
onSuccess - The operation executed if the task succeeded.onError - The operation executed if the task failed.class RunnableCallback@NotNull public java.lang.Runnable getOnSuccess()
The operation executed if the task succeeded.
@NotNull public Consumer<org.ocast.sdk.core.models.OCastError> getOnError()
The operation executed if the task failed.