getDevices method

  1. @override
Future<List<BluetoothDevice>> getDevices(
  1. List<String> deviceIds
)
override

实现 FlutterBluetoothPluginPlatform.getDevices

参数、默认值、平台差异和推荐值见平台接口文档。

Implementation

@override
Future<List<BluetoothDevice>> getDevices(List<String> deviceIds) async {
  final response = await methodChannel.invokeListMethod<dynamic>(
    'getDevices',
    <String, dynamic>{'deviceIds': deviceIds},
  );
  return _deviceListFromPlatform(response);
}