voiceReportIncoming method

  1. @override
Future<void> voiceReportIncoming({
  1. required String callId,
  2. required String from,
  3. String? displayName,
  4. String? avatarUrl,
  5. bool hasVideo = false,
})
override

Ask the OS to ring callId in the SYSTEM call UI (over the lock screen). The call is answered NATIVELY — the app is never forced open.

Implementation

@override
Future<void> voiceReportIncoming({
  required String callId,
  required String from,
  String? displayName,
  String? avatarUrl,
  bool hasVideo = false,
}) async {
  try {
    await methodChannel.invokeMethod('voiceReportIncoming', {
      'callId': callId,
      'from': from,
      'displayName': displayName,
      'avatarUrl': avatarUrl,
      'hasVideo': hasVideo,
    });
  } catch (_) {}
}