MidiBleTransport class abstract
BLE transport contract consumed by MidiCommand.
This is intentionally separate from MidiCommandPlatform so native
platform wrappers can remain focused on serial/native MIDI stacks while BLE
is provided by shared Dart implementations (for example universal_ble).
Constructors
Properties
-
devices
→ Future<
List< MidiDevice> > -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onBluetoothStateChanged
→ Stream<
String> -
no setter
-
onMidiDataReceived
→ Stream<
MidiPacket> -
no setter
-
onMidiSetupChanged
→ Stream<
MidiSetupChange> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
bluetoothState(
) → Future< String> -
connectToDevice(
MidiDevice device, {List< MidiPort> ? ports, Duration? timeout}) → Future<void> -
disconnectDevice(
MidiDevice device) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerKnownDevice(
String id, String name) → MidiDevice? - Registers a BLE device that may currently only be known via the host platform (for example a bonded peripheral exposed by CoreMIDI that this transport never scanned). Lets the transport prepare or release the matching BLE link by id. Returns the transport's device instance, or null if unsupported.
-
sendData(
Uint8List data, {int? timestamp, String? deviceId}) → void -
startBluetooth(
) → Future< void> -
startScanningForBluetoothDevices(
) → Future< void> -
stopScanningForBluetoothDevices(
) → void -
teardown(
) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited