showCallNotification method

  1. @override
Future<bool> showCallNotification({
  1. required String callId,
  2. required String callerName,
  3. required bool isVideo,
  4. String? callerAvatar,
})
override

Shows a full-screen incoming call notification.

Implementation

@override
Future<bool> showCallNotification({
  required String callId,
  required String callerName,
  required bool isVideo,
  String? callerAvatar,
}) async {
  final result = await methodChannel.invokeMethod<bool>(
    'showCallNotification',
    {
      'callId': callId,
      'callerName': callerName,
      'isVideo': isVideo,
      'callerAvatar': callerAvatar,
    },
  );
  return result ?? false;
}