SppConnectionPluginPlatform class abstract

Inheritance
  • Object
  • PlatformInterface
  • SppConnectionPluginPlatform
Implementers

Constructors

SppConnectionPluginPlatform.new()
Constructs a SppConnectionPluginPlatform.

Properties

connectedDevice BluetoothDeviceModel?
no setter
connectionState BluetoothConnectionState
no setter
connectionStateStream Stream<BluetoothConnectionState>
no setter
dataStream Stream<Uint8List>
no setter
deviceListStream Stream<List<BluetoothDeviceModel>>
no setter
hashCode int
The hash code for this object.
no setterinherited
hexMode bool
no setter
newlineType String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

areNotificationsEnabled() Future<bool>
connectToDevice(String address) Future<void>
disconnect() Future<void>
enableBluetooth() Future<void>
getPairedDevices() Future<List<BluetoothDeviceModel>>
getPlatformVersion() Future<String?>
hasPermissions() Future<bool>
isBluetoothEnabled() Future<bool>
isBluetoothSupported() Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openBluetoothSettings() Future<void>
openNotificationSettings() Future<void>
requestPermissions() Future<bool>
sendData(Uint8List data) Future<void>
sendHex(String hexString) Future<void>
sendText(String text) Future<void>
setHexMode(bool enabled) → void
setNewlineType(String newline) → void
startBackgroundService() Future<void>
stopBackgroundService() Future<void>
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

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