handleResponse

fun handleResponse(response: String, appId: String? = null, callback: (result: PerimeterXChallengeResult) -> Unit?): Boolean

This function handles the URL request's response and presents the block screen, if necessary. Returns true if the PerimeterX'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.

appId

The AppID of your account. Ignore this param if you use only one AppID.

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.