浏览代码

增加壳子接口

jimmy.jiang@vinno.com 1 年之前
父节点
当前提交
62e0568c85
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      lib/services/platform.dart

+ 6 - 0
lib/services/platform.dart

@@ -701,6 +701,12 @@ class PlatformService extends JsonRpcClientBase {
     var rpcRst = await call('SetSystemAudioDevice', [deviceName]);
     return rpcRst;
   }
+
+  ///停止魔盒的设备预览
+  Future<bool> stopPreview() async {
+    var rpcRst = await call('StopPreview');
+    return rpcRst;
+  }
 }
 
 /// 一些platform 的数据结构定义