liblinphone_flutter/lib/liblinphone_flutter_platform_interface.dart

151 lines
4.4 KiB
Dart

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';
import 'models/lp_codec.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<bool> checkPermissions() {
throw UnimplementedError('checkPermissions() has not been implemented.');
}
Future<bool> initialize() {
throw UnimplementedError('initialize() has not been implemented.');
}
Future<bool> 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<bool> unregister() {
throw UnimplementedError('unregister() has not been implemented.');
}
Future<bool> 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<bool> answerCall(
String notificationTitle,
String notificationMessage,
) {
throw UnimplementedError(
'answerCall(String notificationTitle, String notificationMessage) has not been implemented.',
);
}
Future<bool> hangupCall() {
throw UnimplementedError('hangupCall() has not been implemented.');
}
Future<bool> inCall() {
throw UnimplementedError('inCall() has not been implemented.');
}
Future<CallType> callType() {
throw UnimplementedError('callType() has not been implemented.');
}
Future<bool> toggleVideo() {
throw UnimplementedError('toggleVideo() has not been implemented.');
}
Future<bool> toggleMicrophone() {
throw UnimplementedError('toggleMicrophone() has not been implemented.');
}
Future<bool> stop() {
throw UnimplementedError('stop() has not been implemented.');
}
Future<bool> syncCurrentState() {
throw UnimplementedError('syncCurrentState() has not been implemented.');
}
Future<bool> sendDtmf(String tone) {
throw UnimplementedError('sendDtmf(String tone) has not been implemented.');
}
Future<bool> stopCallService() async {
throw UnimplementedError('stopCallService() has not been implemented.');
}
Future<bool> setMicGain(double level) async {
throw UnimplementedError(
'setMicGain(double level) has not been implemented.',
);
}
Future<double> getMicGain() async {
throw UnimplementedError('getMicGain() has not been implemented.');
}
Future<bool> setPlaybackGain(double level) async {
throw UnimplementedError(
'setPlaybackGain(double level) has not been implemented.',
);
}
Future<double> getPlaybackGain() async {
throw UnimplementedError('getPlaybackGain() has not been implemented.');
}
Future<bool> setDscp(int sipDscp, int audioDscp, int videoDscp) async {
throw UnimplementedError(
'setDscp(int sipDscp, int audioDscp, int videoDscp) has not been implemented.',
);
}
Future<DscpValues> getDscp() async {
throw UnimplementedError('getDscp() has not been implemented.');
}
Future<CallStats?> getCurrentCallStats() async {
throw UnimplementedError('getCurrentCallStats() has not been implemented.');
}
Future<List<LPCodec>> getAvailableAudioCodecs() async {
throw UnimplementedError('getCurrentCallStats() has not been implemented.');
}
Future<bool> setAudioCodec(String mime, int clockRate) async {
throw UnimplementedError('getCurrentCallStats() has not been implemented.');
}
}