BleAPI class
Constructors
- BleAPI()
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
-
connect(
String mac) → Future< int> - 连接蓝牙设备 返回连接是否成功
-
dispose(
) → Future< void> -
eventFor(
) → Stream< Map> - 注册EventChannel, 返回 Map 交由 Controller 解析
-
isEnable(
) → Future< bool> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notify(
String mac, String uuid) → Future< int> -
startScan(
) → Future< bool> - 开始扫描 返回方法是否执行成功, 之后扫描的结果将通过EventChannel返回
-
stopScan(
) → Future< void> - 停止扫描
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
String mac, String uuid, String data) → Future< int> -
writeWIFIInfo(
String mac, String uuid, String ssid, String password, String capabilities) → Future< int>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited