configureAndroidCallKit static method

Future<bool?> configureAndroidCallKit({
  1. bool enableRingtone = true,
  2. bool enableIncomingCallUI = true,
})

Configures Android CallKit behavior, including ringtone and UI display settings.

This method allows you to enable or disable the incoming call ringtone and the visibility of the incoming call UI independently.

Parameters:

  • enableRingtone (optional): A boolean value to enable or disable the ringtone sound.

    • Defaults to true. Set to false to mute the ringtone.
  • enableIncomingCallUI (optional): A boolean value to enable or disable the incoming call screen.

    • Defaults to true. Set to false to suppress the UI.

Implementation

static Future<bool?> configureAndroidCallKit({
  bool enableRingtone = true,
  bool enableIncomingCallUI = true,
}) {
  final settings = AndroidCallKitSettings(
    enableRingtone: enableRingtone,
    enableIncomingCallUI: enableIncomingCallUI,
  );
  return FlyChatFlutterPlatform.instance.configureAndroidCallKit(settings);
}