Class ConfirmationCallback
-
- All Implemented Interfaces:
-
java.io.Serializable,org.forgerock.android.auth.callback.Callback
public class ConfirmationCallback extends AbstractPromptCallback
Callback to retrieve the selected option from a list of options
-
-
Field Summary
Fields Modifier and Type Field Description public final static intUNSPECIFIED_OPTIONpublic final static intYES_NO_OPTIONpublic final static intYES_NO_CANCEL_OPTIONpublic final static intOK_CANCEL_OPTIONpublic final static intYESpublic final static intNOpublic final static intCANCELpublic final static intOKpublic final static intINFORMATIONpublic final static intWARNINGpublic final static intERRORpublic Stringprompt
-
Constructor Summary
Constructors Constructor Description ConfirmationCallback()ConfirmationCallback(JSONObject jsonObject, int index)
-
Method Summary
Modifier and Type Method Description StringgetType()Return the type of the Callback, the type name should align with the Callback type returned from AM voidsetSelectedIndex(int selection)Set the selected choice. -
-
Constructor Detail
-
ConfirmationCallback
ConfirmationCallback()
-
ConfirmationCallback
ConfirmationCallback(JSONObject jsonObject, int index)
-
-
Method Detail
-
getType
String getType()
Return the type of the Callback, the type name should align with the Callback type returned from AM
-
setSelectedIndex
void setSelectedIndex(int selection)
Set the selected choice.
- Parameters:
selection- the selection represented as an index into theoptionslist.
-
-
-
-