Package org.forgerock.android.auth
Class Node
-
- All Implemented Interfaces:
-
java.io.Serializable
public class Node implements Serializable
-
-
Constructor Summary
Constructors Constructor Description Node()
-
Method Summary
Modifier and Type Method Description List<Callback>getCallbacks()<T> TgetCallback(Class<T> clazz)Find the first match Callback with the provided Class. voidnext(Context context, NodeListener<out Object> listener)Move on to the next node in the tree. voidsetCallback(Callback callback)Sets the Callback object for the AuthService node. -
-
Method Detail
-
getCallbacks
List<Callback> getCallbacks()
-
getCallback
<T> T getCallback(Class<T> clazz)
Find the first match Callback with the provided Class. Returns null if not found.
- Parameters:
clazz- The Callback Class
-
next
void next(Context context, NodeListener<out Object> listener)
Move on to the next node in the tree.
- Parameters:
context- The Application Contextlistener- Listener for receiving AuthService related changes onSuccess on success login.
-
setCallback
void setCallback(Callback callback)
Sets the Callback object for the AuthService node.
- Parameters:
callback- Callback Object with the new state.
-
-
-
-