CometChatNotificationConfig constructor

CometChatNotificationConfig({
  1. required String appId,
  2. required String region,
  3. CometChatCallScreenBuilder? customCallScreenBuilder,
  4. CometChatCallAcceptedCallback? onCallAccepted,
  5. CometChatCallDeclinedCallback? onCallDeclined,
  6. NvpConfig? nvpConfig,
  7. CometChatCallActionHandler? callActionHandler,
  8. bool showInAppNotifications = false,
  9. bool showInAppVoIP = false,
})

Creates a CometChatNotificationConfig instance.

customCallScreenBuilder is optional — when omitted, the plugin uses CometChatDefaultCallScreen to render incoming calls.

Implementation

CometChatNotificationConfig({
  required this.appId,
  required this.region,
  this.customCallScreenBuilder,
  this.onCallAccepted,
  this.onCallDeclined,
  this.nvpConfig,
  this.callActionHandler,
  this.showInAppNotifications = false,
  this.showInAppVoIP = false,
});