import 'package:liblinphone_flutter/models/call_type.dart'; import 'package:plugin_platform_interface/plugin_platform_interface.dart'; import 'liblinphone_flutter_method_channel.dart'; import 'models/call_stats.dart'; import 'models/dscp_values.dart'; abstract class LiblinphoneFlutterPlatform extends PlatformInterface { /// Constructs a LiblinphoneFlutterPlatform. LiblinphoneFlutterPlatform() : super(token: _token); static final Object _token = Object(); static LiblinphoneFlutterPlatform _instance = MethodChannelLiblinphoneFlutter(); /// The default instance of [LiblinphoneFlutterPlatform] to use. /// /// Defaults to [MethodChannelLiblinphoneFlutter]. static LiblinphoneFlutterPlatform get instance => _instance; /// Platform-specific implementations should set this with their own /// platform-specific class that extends [LiblinphoneFlutterPlatform] when /// they register themselves. static set instance(LiblinphoneFlutterPlatform instance) { PlatformInterface.verifyToken(instance, _token); _instance = instance; } Future checkPermissions() { throw UnimplementedError('checkPermissions() has not been implemented.'); } Future initialize() { throw UnimplementedError('initialize() has not been implemented.'); } Future register( String username, String password, String serverIp, int serverPort, ) { throw UnimplementedError( 'register(String username, String password, String serverIp, int serverPort) has not been implemented.', ); } Future unregister() { throw UnimplementedError('unregister() has not been implemented.'); } Future makeCall( String callTo, bool isVideoEnabled, String notificationTitle, String notificationMessage, ) { throw UnimplementedError( 'makeCall(String callTo, bool isVideoEnabled, String notificationTitle, String notificationMessage) has not been implemented.', ); } Future answerCall( String notificationTitle, String notificationMessage, ) { throw UnimplementedError( 'answerCall(String notificationTitle, String notificationMessage) has not been implemented.', ); } Future hangupCall() { throw UnimplementedError('hangupCall() has not been implemented.'); } Future inCall() { throw UnimplementedError('inCall() has not been implemented.'); } Future callType() { throw UnimplementedError('callType() has not been implemented.'); } Future toggleVideo() { throw UnimplementedError('toggleVideo() has not been implemented.'); } Future toggleMicrophone() { throw UnimplementedError('toggleMicrophone() has not been implemented.'); } Future stop() { throw UnimplementedError('stop() has not been implemented.'); } Future syncCurrentState() { throw UnimplementedError('syncCurrentState() has not been implemented.'); } Future sendDtmf(String tone) { throw UnimplementedError('sendDtmf(String tone) has not been implemented.'); } Future stopCallService() async { throw UnimplementedError('stopCallService() has not been implemented.'); } Future setMicGain(double level) async { throw UnimplementedError( 'setMicGain(double level) has not been implemented.', ); } Future getMicGain() async { throw UnimplementedError('getMicGain() has not been implemented.'); } Future setPlaybackGain(double level) async { throw UnimplementedError( 'setPlaybackGain(double level) has not been implemented.', ); } Future getPlaybackGain() async { throw UnimplementedError('getPlaybackGain() has not been implemented.'); } Future setDscp(int sipDscp, int audioDscp, int videoDscp) async { throw UnimplementedError( 'setDscp(int sipDscp, int audioDscp, int videoDscp) has not been implemented.', ); } Future getDscp() async { throw UnimplementedError('getDscp() has not been implemented.'); } Future getCurrentCallStats() async { throw UnimplementedError('getCurrentCallStats() has not been implemented.'); } }