startSpeakerDeviceTest method Null safety
- String filePath
开始扬声器测试
该方法播放指定的音频文件测试播放设备是否能正常工作。如果能听到声音,说明播放设备能正常工作。
注意:此接口只支持Mac和Windows平台
参数:
filePath 声音文件的路径
返回:
0:操作成功 负数:失败
Implementation
Future<int?> startSpeakerDeviceTest(String filePath) {
return _channel
.invokeMethod('startSpeakerDeviceTest', {"filePath": filePath});
}