FlutterBlueElves class

中央处理类,用于扫描设备以及与底层通信

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

androidApplyBluetoothPermission(dynamic callback(bool isOk)) → void
调用底层去获取蓝牙权限,安卓12专用
androidApplyLocationPermission(dynamic callback(bool isOk)) → void
调用底层去获取定位权限,安卓专用
androidCheckBlueLackWhat() Future<List<AndroidBluetoothLack>>
调用底层去查看缺少什么权限或功能,安卓专用
androidOpenBluetoothService(dynamic callback(bool isOk)) → void
调用底层去开启蓝牙功能,安卓专用
androidOpenLocationService(dynamic callback(bool isOk)) → void
调用底层去开启定位功能,安卓专用
getHideConnectedDevices() Future<List<HideConnectedDevice>>
获取因为被其他应用连接上而扫描不出来的设备
iosCheckBluetoothState() Future<IosBluetoothState>
调用底层去查看蓝牙当前状态,ios专用
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startScan(int timeout, {bool isAllowDuplicates = false}) Stream<ScanResult>
开始扫描设备,返回扫描结果流
stopScan() → void
停止扫描设备
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance FlutterBlueElves
getter/setter pair