registerCallbackForRequestBlockedEvent

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

Register a callback that will be called after a request was blocked. Returns the registration ID. Use it to unregister with unregisterCallbackForRequestBlockedEvent 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.