configureAndroidCallKit method

  1. @override
Future<bool?> configureAndroidCallKit(
  1. AndroidCallKitSettings builder
)
override

Configures the Android CallKit settings such as ringtone and UI visibility.

Implementation

@override
Future<bool?> configureAndroidCallKit(AndroidCallKitSettings builder) async {
  bool? response = false;
  if (Platform.isAndroid) {
    try {
      response = await mirrorFlyCallMethodChannel.invokeMethod<bool>(
        "configureAndroidCallKit",
        builder.toMap(),
      );
      return response;
    } on PlatformException catch (e) {
      LogMessage.d("#Platform Exception =", " $e");
      rethrow;
    } on Exception catch (e) {
      LogMessage.d("Exception ", " $e");
      rethrow;
    }
  } else {
    return false;
  }
}