scanDevices method

Future<void> scanDevices()

扫描设备

Implementation

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