registerCallbackForChallengeCancelledEvent

final String registerCallbackForChallengeCancelledEvent(String appId, Function0<Unit> callback)

Register a callback that will be called after the user cancelled the challenge. Returns the registration ID. Use it to unregister with unregisterCallbackForChallengeCancelledEvent function. This function returns nil on failure. You must call the start function before calling this function.

Parameters

appId

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

callback

The callback to register.