AI-generated Key Takeaways
-
RecaptchaAction represents actions intended to be protected by reCAPTCHA and is used with RecaptchaClient's execute method.
-
It implements the Parcelable interface.
-
Instances can be created with predefined actions (RecaptchaActionType) or custom action strings, optionally including additional arguments in a Bundle.
-
Public methods allow retrieving the action type, additional arguments, custom action string, verification history token, and a string representation of the object.
Actions (e.g., login) intended to be protected by reCAPTCHA. An instance of this object
should be passed to
execute(RecaptchaHandle, RecaptchaAction).
Inherited Constant Summary
Field Summary
| public static final Creator<RecaptchaAction> | CREATOR |
Public Constructor Summary
|
RecaptchaAction(RecaptchaActionType
action)
Creates a
RecaptchaAction
instance with a predefined reCAPTCHA action.
|
|
|
RecaptchaAction(RecaptchaActionType
action, Bundle
additionalArgs)
Creates a
RecaptchaAction
instance with a predefined reCAPTCHA action and additional arguments.
|
|
|
RecaptchaAction(String
customAction)
Creates a
RecaptchaAction
instance with a custom action String.
|
|
|
RecaptchaAction(String
customAction, Bundle
additionalArgs)
Creates a
RecaptchaAction
instance with a custom action in the form of a String and additional arguments.
|
Public Method Summary
| RecaptchaActionType |
getAction()
Gets
RecaptchaActionType.
|
| Bundle |
getAdditionalArgs()
Gets the additional arg map specified by this action.
|
| String |
getCustomAction()
Gets custom action that user inputs.
|
| String |
getVerificationHistoryToken()
Gets the verification history token specified by this action.
|
| String |
toString()
Gets the String value of
RecaptchaAction.
|
| void |
writeToParcel(Parcel out, int
flags)
|
Inherited Method Summary
Fields
public static final Creator<RecaptchaAction> CREATOR
Public Constructors
public RecaptchaAction (RecaptchaActionType action)
Creates a RecaptchaAction
instance with a predefined reCAPTCHA action.
public RecaptchaAction (RecaptchaActionType action, Bundle additionalArgs)
Creates a RecaptchaAction
instance with a predefined reCAPTCHA action and additional arguments.
public RecaptchaAction (String customAction)
Creates a RecaptchaAction
instance with a custom action String.
public RecaptchaAction (String customAction, Bundle additionalArgs)
Creates a RecaptchaAction
instance with a custom action in the form of a String and additional arguments.
Public Methods
public RecaptchaActionType getAction ()
Gets RecaptchaActionType.
public Bundle getAdditionalArgs ()
Gets the additional arg map specified by this action.
public String getCustomAction ()
Gets custom action that user inputs.
public String getVerificationHistoryToken ()
Gets the verification history token specified by this action.
public String toString ()
Gets the String value of RecaptchaAction.