BleSdkPlatform class abstract

Inheritance
  • Object
  • PlatformInterface
  • BleSdkPlatform
Implementers

Constructors

BleSdkPlatform.new()
Constructs a BleSdkPlatform.

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

characteristicResult() Stream<CharacteristicValue>
subscription characteristic result with read/write return CharacteristicValue
checkBonded() Future<bool>
check bonded ble device after connect return bool
checkPermission() Future<PermissionResult>
check permission app return PermissionResult
connect(ConnectModel connectModel) Future<bool>
connect ble device with deviceId createBond using open pin code dialog with read/write characteristic authorize
deviceResult() Stream<BluetoothBLEModel>
subscription scan BluetoothBLEModel device
disconnect() Future<bool>
disconnect current ble device
discoverServices() Future<List<Service>>
discoverServices device current connect return Services
initialSdk() Future<bool>
initialSdk
isBluetoothAvailable() Future<bool>
check bluetooth on/off
isLocationAvailable() Future<bool>
check location on/off
logResult() Stream<Log>
subscription log characteristic result with read/write/notification/indication return Log
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readCharacteristic(Characteristic characteristic) Future<CharacteristicValue>
read characteristic with characteristic return CharacteristicValue
requestPermission() Future<bool>
request permission return bool
requestPermissionSettings() Future<void>
open settings detail app
setIndication(Characteristic characteristic) Future<bool>
set indication with characteristic contains notify return bool
setNotification(Characteristic characteristic) Future<bool>
set notification with characteristic contains notify return bool
startScan(ScanModel scanModel) Future<void>
start scan ble with services default list empty services BLE ex: 1808, FFF0, ....
stateBluetoothResult() Stream<StateBluetooth>
subscription on/off StateBluetooth bluetooth
stateConnectResult() Stream<StateConnect>
subscription connection StateConnect device
stopScan() Future<void>
stop scan ble
toString() String
A string representation of this object.
inherited
turnOnBluetooth() Future<void>
turn on bluetooth
turnOnLocation() Future<void>
turn on location
unBonded(ConnectModel model) Future<bool>
un bonded ble device with deviceId TODO: support only android
writeCharacteristic(CharacteristicValue value) Future<CharacteristicValue>
write characteristic with value return CharacteristicValue
writeCharacteristicNoResponse(CharacteristicValue value) Future<bool>
read characteristic with characteristic return CharacteristicValue

Operators

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

Static Properties

instance BleSdkPlatform
The default instance of BleSdkPlatform to use.
getter/setter pair