Google is committed to advancing racial equity for Black communities. See how.

RecaptchaAction

public final class RecaptchaAction extends Object
implements Parcelable

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.

public void writeToParcel (Parcel out, int flags)