Package org.forgerock.android.auth
Class Listener
-
- All Implemented Interfaces:
public class ListenerUtility to send events to FRListener
-
-
Method Summary
Modifier and Type Method Description static <T> voidonSuccess(FRListener<T> listener, T value)Notify the Listener with success result static voidonException(FRListener<out Object> listener, Exception value)Notify the Listener with failed result -
-
Method Detail
-
onSuccess
static <T> void onSuccess(FRListener<T> listener, T value)
Notify the Listener with success result
- Parameters:
listener- The listener to listen for eventsvalue- The Value send with the event.
-
onException
static void onException(FRListener<out Object> listener, Exception value)
Notify the Listener with failed result
- Parameters:
listener- The listener to listen for eventsvalue- The Exception send with the event.
-
-
-
-