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,19 @@ abstract class LiblinphoneFlutterPlatform extends PlatformInterface {
throw UnimplementedError('unregister() has not been implemented.');
}
Future<bool> makeCall(String callTo, bool isVideoEnabled) {
Future<bool> makeCall(
String callTo,
bool isVideoEnabled,
String notificationTitle,
String notificationMessage,
) {
throw UnimplementedError('makeCall() has not been implemented.');
}
Future<bool> answerCall() {
Future<bool> answerCall(
String notificationTitle,
String notificationMessage,
) {
throw UnimplementedError('answerCall() has not been implemented.');
}
@ -85,4 +93,8 @@ abstract class LiblinphoneFlutterPlatform extends PlatformInterface {
Future<bool> sendDtmf(String tone) {
throw UnimplementedError('sendDtmf() has not been implemented.');
}
Future<bool> stopCallService() async {
throw UnimplementedError('stopCallService() has not been implemented.');
}
}