configureAndroidCallKit static method
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 tofalse
to mute the ringtone.
- Defaults to
-
enableIncomingCallUI
(optional): A boolean value to enable or disable the incoming call screen.- Defaults to
true
. Set tofalse
to suppress the UI.
- Defaults to
Implementation
static Future<bool?> configureAndroidCallKit({
bool enableRingtone = true,
bool enableIncomingCallUI = true,
}) {
final settings = AndroidCallKitSettings(
enableRingtone: enableRingtone,
enableIncomingCallUI: enableIncomingCallUI,
);
return FlyChatFlutterPlatform.instance.configureAndroidCallKit(settings);
}