onCallAcceptedWhenTerminated property

void onCallAcceptedWhenTerminated=(CallEventHandler? handler)

Set a accept 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 onCallAcceptedWhenTerminated(CallEventHandler? handler) {
  _onCallAcceptedWhenTerminated = handler;

  if (handler != null) {
    instance._registerBackgroundCallEventHandler(
        handler, BackgroundCallbackName.ACCEPTED_IN_BACKGROUND);
  }
}