handleADMMethodCall method
Implementation
Future<dynamic> handleADMMethodCall(MethodCall call) async {
var args = <String, dynamic>{};
if (call.arguments != null) {
args = Map<String, dynamic>.from(call.arguments);
}
if (call.method == 'callApi') {
int apiType = args['apiType'];
String param = args['params'];
return promiseToFuture(
_engineMain.deviceManager.callApiAudio(apiType, param));
} else {
throw PlatformException(code: ErrorCode.NotSupported.toString());
}
}