setDeclineCallHandler method

  1. @override
void setDeclineCallHandler(
  1. void handler(
    1. String sessionId
    )
)
override

Registers a handler for silent decline broadcasts.

Fires when the user taps the Decline action on the call notification. The handler should call CometChat.rejectCall() on the SDK side.

Implementation

@override
void setDeclineCallHandler(void Function(String sessionId) handler) {
  _declineCallHandler = handler;
  _ensureMethodCallHandlerSet();
}