HSBotDefenderDelegate

Functions

Link copied to clipboard

Called when the challenge was cancelled.

Link copied to clipboard

Called when the challenge rendered successfully.

Link copied to clipboard

Called when the challenge failed to render.

Link copied to clipboard
abstract fun botDefenderChallengeSolved(appId: String)

Called when the challenge was solved.

Link copied to clipboard

Called when the user solved the challenge but the SDK could not finalize the pass. The reason is HSBotDefenderChallengeFailureReason.NETWORK_ERROR when startup is incomplete, local token persistence fails, or the post-solve token refresh times out or throws (e.g. connectivity, SSL, pinning).

Link copied to clipboard
abstract fun botDefenderDidUpdateHeaders(headers: HashMap<String, String>, appId: String)

Called when the HTTP headers were changed. You may store and use those headers instead of calling the `headersForURLRequest(forAppId:)` function for every URL request.

Link copied to clipboard
abstract fun botDefenderRequestBlocked(url: String?, appId: String)

Called when a request was blocked.