voiceReportIncoming method
Future<void>
voiceReportIncoming({
- required String callId,
- required String from,
- String? displayName,
- String? avatarUrl,
- 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 (_) {}
}