ledger_flutter library

Classes

$ConnectionStateUpdate
$DiscoveredDevice
$DiscoveredService
$ScanResult
BleConnectionManager
BlePacker
BleSearchManager
ByteDataReader
A class for parsing byte arrays.
ByteDataWriter
A class for building byte arrays with a BytesBuffer and a fixed-length work buffer.
BytesBuffer
A class for concatenating byte arrays efficiently.
Characteristic
An instance of this object should not be used after its device has lost its connection.
CharacteristicValue
Value update for specific CharacteristicInstance.
ConnectionPriorityInfo
Result of the connection priority request
ConnectionStateUpdate
Status update for a specific BLE device.
ConnectionStateUpdate$
ConnectionStateUpdate$Change
DiscoveredCharacteristic
Specific BLE characteristic for a BLE device characterized by deviceId, serviceId and characteristicId.
DiscoveredDevice
Ble device that is discovered during scanning.
DiscoveredDevice$
DiscoveredDevice$Change
DiscoveredLedger
DiscoveredService
DiscoveredService$
DiscoveredService$Change
FlutterReactiveBle
FlutterReactiveBle is the facade of the library. Its interface allows to perform all the supported BLE operations.
GattGateway
GATT is an acronym for the Generic ATTribute Profile, and it defines the way that two Bluetooth Low Energy devices transfer data back and forth using concepts called Services and Characteristics.
GenericFailure<T>
Error result of a BLE operation.
Ledger
LedgerApp
Applications on Ledger devices play a vital role in managing your crypto assets – for each cryptocurrency, there’s a dedicated app. These apps can be installed onto your hardware wallet by connecting it to Ledger Live.
LedgerBleConnectionManager
LedgerBleSearchManager
LedgerDevice
LedgerGattGateway
https://learn.adafruit.com/introduction-to-bluetooth-low-energy/gatt https://gist.github.com/btchip/e4994180e8f4710d29c975a49de46e3a
LedgerGattReader
LedgerOperation<T>
LedgerOptions
LedgerPacker
LedgerTransformer
LedgerUsbManager
Logger
QualifiedCharacteristic
Specific BLE characteristic for a BLE device characterized by deviceId, serviceId and characteristicId.
ReactiveBlePlatform
The interface that implementations of reactive_ble must implement.
Repeater<T>
Repeater sets an underlying stream up on the first subscription to the output stream and shuts it down when there are no more subscriptions.
Result<Value, Failure>
Result of a ble operation.
ScanResult
Result of a scan interval.
ScanResult$
ScanResult$Change
ScanSession
SerialDisposable<T>
A disposable resource whose underlying resource can be replaced by another resource causing automatic disposal of the previous underlying resource.
Service
An instance of this object should not be used after its device has lost its connection.
StreamSubscriptionSerialDisposable<T>
A SerialDisposable that contains an underlying stream subscription.
Unit
UsbManager
Uuid
Representation of a 16, 32 or 128-bit number used to identify BLE services and characteristics.
WriteCharacteristicInfo

Enums

BleStatus
The status of the BLE subsystem as reported by the platform API.
CharacteristicValueUpdateError
Error type for characteristic value update.
ClearGattCacheError
Error type of Clear Gatt cache operation.
Connectable
Shows if the device is ready to be connected to from a discovery perspective
ConnectionError
Type of connection error.
ConnectionPriority
The priority that can be requested to update the connection parameter.
ConnectionPriorityFailure
Error type for connection priority.
ConnectionStatus
Connection status of the BLE device.
ConnectionType
DeviceConnectionState
Connection status.
LogLevel
States the level of debug logging within this library
ScanFailure
Failure type of device discovery.
ScanMode
Android only: mode in which BLE discovery is executed.
WriteCharacteristicFailure

Functions

castBytes(List<int> bytes, {bool copy = false}) Uint8List
Cast the list of bytes into a typed Uint8List.
convertPriorityToInt(ConnectionPriority priority) int
util function to convert priority to a integer.
convertScanModeToArgs(ScanMode scanMode) int
Converts ScanMode to integer representation.
readAsBytes(Stream<List<int>> stream, {int? maxLength, bool copy = false}) Future<Uint8List>
Read stream into a typed byte buffer.
readAsString(Stream<List<int>> stream, {Encoding? encoding}) Future<String>
Read stream into a String.
sliceStream(Stream<List<int>> stream, int sliceLength, {int? maxLength, bool copy = false}) Stream<Uint8List>
Read stream and slice the content into chunks with target/max length of sliceLength.

Typedefs

PermissionRequestCallback = Future<bool> Function(BleStatus status)

Exceptions / Errors

LedgerException