updateOsCallDisplay method
Updates the display name the system call UI shows for a session.
Invokes the native 'updateOsCallDisplay' method via MethodChannel.
Returns 0 on success, -1 or error code on failure.
Implementation
@override
Future<int> updateOsCallDisplay({
required int sessionId,
required String displayName,
}) async {
final args = {'sessionId': sessionId, 'displayName': displayName};
_logCall('updateOsCallDisplay', args);
try {
final result = await methodChannel.invokeMethod<int>(
'updateOsCallDisplay',
args,
);
_logResponse('updateOsCallDisplay', result);
return result ?? -1;
} on PlatformException catch (e) {
_logError('updateOsCallDisplay', e);
return -1;
}
}