setDeclineCallHandler method

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

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

void setDeclineCallHandler(void Function(String sessionId) handler) {
  throw UnimplementedError(
    'setDeclineCallHandler() has not been implemented.',
  );
}