-
- All Implemented Interfaces:
-
com.hcaptcha.sdk.IHCaptcha
public final class HCaptcha extends Task<HCaptchaTokenResponse> implements IHCaptcha
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringMETA_SITE_KEY
-
Method Summary
Modifier and Type Method Description static HCaptchagetClient(@NonNull() FragmentActivity activity)Constructs a new client which allows to display a challenge dialog HCaptchasetup()Prepare the client which allows to display a challenge dialog HCaptchasetup(@NonNull() String siteKey)Constructs a new client which allows to display a challenge dialog HCaptchasetup(@NonNull() HCaptchaConfig inputConfig)Constructs a new client which allows to display a challenge dialog HCaptchaverifyWithHCaptcha()Shows a captcha challenge dialog to be completed by the user HCaptchaverifyWithHCaptcha(@NonNull() String siteKey)Shows a captcha challenge dialog to be completed by the user HCaptchaverifyWithHCaptcha(@NonNull() HCaptchaConfig inputConfig)Shows a captcha challenge dialog to be completed by the user voidreset()Force stop verification and release resources. -
Methods inherited from class com.hcaptcha.sdk.tasks.Task
addOnFailureListener, addOnOpenListener, addOnSuccessListener, getException, isComplete, isSuccessful, removeAllListeners, removeOnFailureListener, removeOnOpenListener, removeOnSuccessListener -
Methods inherited from class com.hcaptcha.sdk.IHCaptcha
setup, setup, verifyWithHCaptcha, verifyWithHCaptcha -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getClient
static HCaptcha getClient(@NonNull() FragmentActivity activity)
Constructs a new client which allows to display a challenge dialog
- Parameters:
activity- The current activity
-
setup
HCaptcha setup(@NonNull() String siteKey)
Constructs a new client which allows to display a challenge dialog
- Parameters:
siteKey- The hCaptcha site-key.
-
setup
HCaptcha setup(@NonNull() HCaptchaConfig inputConfig)
Constructs a new client which allows to display a challenge dialog
-
verifyWithHCaptcha
HCaptcha verifyWithHCaptcha()
Shows a captcha challenge dialog to be completed by the user
-
verifyWithHCaptcha
HCaptcha verifyWithHCaptcha(@NonNull() String siteKey)
Shows a captcha challenge dialog to be completed by the user
- Parameters:
siteKey- The hCaptcha site-key.
-
verifyWithHCaptcha
HCaptcha verifyWithHCaptcha(@NonNull() HCaptchaConfig inputConfig)
Shows a captcha challenge dialog to be completed by the user
-
reset
void reset()
Force stop verification and release resources.
-
-
-
-