handleResponse

fun handleResponse(response: String, callback: (result: HSBotDefenderChallengeResult) -> Unit?): Boolean

This function handles the URL request's response and presents the block screen, if necessary. Returns true if the Human's payload in the response was handled by the SDK. This function should be used only when the `PXPolicyUrlRequestInterceptionType` is set to `PXPolicyUrlRequestInterceptionType/NONE` in the policy.

Parameters

response

The response that was received from the URL request.

callback

The callback that indicate the challenge's result. The callback will be called once the user solved (or cancelled) the challenge. You may use this to retry the URL request.