scanDevices method
扫描设备
Implementation
Future<void> scanDevices() async {
try {
await _channel.invokeMethod('scanDevices');
} on PlatformException catch (e) {
throw Exception('扫描设备失败: ${e.message}');
}
}
扫描设备
Future<void> scanDevices() async {
try {
await _channel.invokeMethod('scanDevices');
} on PlatformException catch (e) {
throw Exception('扫描设备失败: ${e.message}');
}
}