feat: add custom notification title and message for VoIP calls (also stopCallService method)

This commit is contained in:
Andrew 2026-04-09 12:22:18 +07:00
parent f722fc0e5f
commit ab5df9fd28
7 changed files with 106 additions and 26 deletions

View file

@ -46,11 +46,25 @@ class LiblinphoneFlutter {
Future<bool> unregister() async =>
LiblinphoneFlutterPlatform.instance.unregister();
Future<bool> makeCall(String callTo, bool isVideoEnabled) async =>
LiblinphoneFlutterPlatform.instance.makeCall(callTo, isVideoEnabled);
Future<bool> makeCall(
String callTo,
bool isVideoEnabled,
String notificationTitle,
String notificationMessage,
) async => LiblinphoneFlutterPlatform.instance.makeCall(
callTo,
isVideoEnabled,
notificationTitle,
notificationMessage,
);
Future<bool> answerCall() async =>
LiblinphoneFlutterPlatform.instance.answerCall();
Future<bool> answerCall(
String notificationTitle,
String notificationMessage,
) async => LiblinphoneFlutterPlatform.instance.answerCall(
notificationTitle,
notificationMessage,
);
Future<bool> hangupCall() async =>
LiblinphoneFlutterPlatform.instance.hangupCall();
@ -73,4 +87,7 @@ class LiblinphoneFlutter {
Future<bool> sendDtmf(String tone) async =>
LiblinphoneFlutterPlatform.instance.sendDtmf(tone);
Future<bool> stopCallService(String tone) async =>
LiblinphoneFlutterPlatform.instance.stopCallService();
}