Package-level declarations

Types

Link copied to clipboard
data class HCaptchaConfig(val siteKey: String, val sentry: Boolean = true, val loading: Boolean = true, val hideDialog: Boolean = false, val rqdata: String? = null, val jsSrc: String = "https://js.hcaptcha.com/1/api.js", val endpoint: String? = null, val reportapi: String? = null, val assethost: String? = null, val imghost: String? = null, val locale: String = Locale.getDefault().language, val size: HCaptchaSize = HCaptchaSize.INVISIBLE, val orientation: HCaptchaOrientation = HCaptchaOrientation.PORTRAIT, val theme: HCaptchaTheme = HCaptchaTheme.LIGHT, val host: String? = null, val customTheme: String? = null, val retryPredicate: (HCaptchaConfig, HCaptchaException) -> Boolean? = null, val tokenExpiration: Duration = 120.seconds, val disableHardwareAcceleration: Boolean = true) : Serializable

hCaptcha config builder which allows further customization of UI and other logic. .siteKey is the only mandatory property.

Link copied to clipboard
data class HCaptchaInternalConfig(val htmlProvider: () -> String = HCAPTCHA_WEBVIEW_HTML_PROVIDER) : Serializable

hCaptcha internal config keep internal configuration, which should not be accessible by end user

Link copied to clipboard

The hCaptcha challenge orientation

Link copied to clipboard

The hCaptcha checkbox size

Link copied to clipboard

The hCaptcha checkbox theme