@FunctionalInterface public interface SuccessCallback<T> extends FacadeCallback<T>
MethodCallback turned in to SuccessCallback that supports lambda syntax.
Use this interface if you need a notification only about a success. In case of failure
only an error message in red colour will popup, see MaterialToast.fireToast(String, String).
FacadeCallback.Failure| Modifier and Type | Method and Description |
|---|---|
default void |
done(T response,
FacadeCallback.Failure failure)
Called when asynchronous call completes either successfully or with an error.
|
default void |
handleError(FacadeCallback.Failure failure) |
void |
onSuccess(T response)
Called when asynchronous call completes successfully.
|
onFailure, onSuccess, redirectToLoginIfUnauthorizedvoid onSuccess(T response)
default void done(T response, FacadeCallback.Failure failure)
FacadeCallbackdone in interface FacadeCallback<T>default void handleError(FacadeCallback.Failure failure)
Copyright © 2020. All rights reserved.