Package 

Class HCaptcha

    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static String META_SITE_KEY
    • Method Summary

      Modifier and Type Method Description
      static HCaptcha getClient(@NonNull() Activity activity) Constructs a new client which allows to display a challenge dialog
      HCaptcha setup() Prepare the client which allows to display a challenge dialog
      HCaptcha setup(@NonNull() String siteKey) Constructs a new client which allows to display a challenge dialog
      HCaptcha setup(@NonNull() HCaptchaConfig inputConfig) Constructs a new client which allows to display a challenge dialog
      HCaptcha verifyWithHCaptcha() Shows a captcha challenge dialog to be completed by the user
      HCaptcha verifyWithHCaptcha(@NonNull() String siteKey) Shows a captcha challenge dialog to be completed by the user
      HCaptcha verifyWithHCaptcha(@NonNull() HCaptchaConfig inputConfig) Shows a captcha challenge dialog to be completed by the user
      void reset() 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() Activity activity)

        Constructs a new client which allows to display a challenge dialog

        Parameters:
        activity - FragmentActivity instance for a visual challenge verification,or any Activity in case of passive siteKey
      • setup

         HCaptcha setup()

        Prepare the client which allows to display a challenge dialog

      • setup

         HCaptcha setup(@NonNull() String siteKey)

        Constructs a new client which allows to display a challenge dialog

        Parameters:
        siteKey - The hCaptcha site-key.
      • verifyWithHCaptcha

         HCaptcha verifyWithHCaptcha(@NonNull() String siteKey)

        Shows a captcha challenge dialog to be completed by the user

        Parameters:
        siteKey - The hCaptcha site-key.
      • reset

         void reset()

        Force stop verification and release resources.