onCallRejectedWhenTerminated property
Set a reject call handler function which is called when the app is in the background or terminated.
This provided handler must be a top-level function and cannot be anonymous otherwise an ArgumentError will be thrown.
Implementation
static set onCallRejectedWhenTerminated(CallEventHandler? handler) {
_onCallRejectedWhenTerminated = handler;
if (handler != null) {
instance._registerBackgroundCallEventHandler(
handler, BackgroundCallbackName.REJECTED_IN_BACKGROUND);
}
}