AI-generated Key Takeaways
-
The Recaptcha API provides access to Google Cloud services for protecting your app from spam and abuse.
-
You can instantiate a reCAPTCHA mobile client by calling
getClient(Context)orgetClient(Activity). -
getClient(Activity)returns aRecaptchaClientfor APIs called when the app has a foregroundActivity. -
getClient(Context)returns aRecaptchaClientfor APIs called without access to a foregroundActivity. -
Using
getClient(Activity)is recommended for improved performance when making multiple API calls from a foregroundActivity.
The reCAPTCHA API provides access to Google Cloud services that help you protect your app from spam and other abusive actions. For more information, see reCAPTCHA Enterprise
To instantiate a reCAPTCHA mobile client, call
getClient(Context) or
getClient(Activity).
Public Method Summary
| static RecaptchaClient |
getClient(Activity
activity)
Returns a
RecaptchaClient
that is used to access all APIs that are called when the app has a foreground
Activity.
|
| static RecaptchaClient |
getClient(Context
context)
Returns a
RecaptchaClient
that is used to access all APIs that are called without access to a foreground
Activity.
|
Inherited Method Summary
Public Methods
public static RecaptchaClient getClient (Activity activity)
Returns a RecaptchaClient
that is used to access all APIs that are called when the app has a foreground
Activity.
Use this method over
getClient(Context) to improve performance if you plan to make multiple API
calls from your application's foreground Activity.
public static RecaptchaClient getClient (Context context)
Returns a RecaptchaClient
that is used to access all APIs that are called without access to a foreground
Activity.