HCaptchaConfig
@Serializable
hCaptcha config builder which allows further customization of UI and other logic. .siteKey is the only mandatory property.
Constructors
Link copied to clipboard
constructor(siteKey: String, sentry: Boolean = true, loading: Boolean = true, hideDialog: Boolean = false, rqdata: String? = null, jsSrc: String = "https://js.hcaptcha.com/1/api.js", endpoint: String? = null, reportapi: String? = null, assethost: String? = null, imghost: String? = null, locale: String = Locale.getDefault().language, size: HCaptchaSize = HCaptchaSize.INVISIBLE, orientation: HCaptchaOrientation = HCaptchaOrientation.PORTRAIT, theme: HCaptchaTheme = HCaptchaTheme.LIGHT, host: String? = null, customTheme: String? = null, retryPredicate: (HCaptchaConfig, HCaptchaException) -> Boolean? = null, tokenExpiration: Duration = 120.seconds, disableHardwareAcceleration: Boolean = true)
Properties
Link copied to clipboard
Custom theme JSON string
Link copied to clipboard
Disable hardware acceleration for WebView
Link copied to clipboard
Can be used in combination with passive sitekey to achieve full invisible flow. See enterprise docs for more information.
Link copied to clipboard
The orientation of the challenge. Default is HCaptchaOrientation.PORTRAIT.
Link copied to clipboard
The lambda will decide should we retry or not
Link copied to clipboard
The site key. Get one here hcaptcha.com
Link copied to clipboard
The size of the checkbox. Default is HCaptchaSize.INVISIBLE.
Link copied to clipboard
The theme. Default is HCaptchaTheme.LIGHT.
Link copied to clipboard
hCaptcha token expiration timeout (seconds)