Package org.forgerock.android.auth
Class Listener
- java.lang.Object
-
- org.forgerock.android.auth.Listener
-
public class Listener extends java.lang.ObjectUtility to send events toFRListener
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidonException(FRListener<?> listener, java.lang.Exception value)Notify the Listener with failed resultstatic <T> voidonSuccess(FRListener<T> listener, T value)Notify the Listener with success result
-
-
-
Method Detail
-
onSuccess
public static <T> void onSuccess(FRListener<T> listener, T value)
Notify the Listener with success result- Type Parameters:
T- The Value Type- Parameters:
listener- The listener to listen for eventsvalue- The Value send with the event.
-
onException
public static void onException(FRListener<?> listener, java.lang.Exception value)
Notify the Listener with failed result- Parameters:
listener- The listener to listen for eventsvalue- The Exception send with the event.
-
-