MidiCommandPlatform class abstract
- Inheritance
-
- Object
- PlatformInterface
- MidiCommandPlatform
- Implementers
Constructors
- MidiCommandPlatform()
- Constructs a MidiCommandPlatform.
Properties
-
devices
→ Future<
List< MidiDevice> ?> -
Returns a list of found MIDI devices.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isNetworkSessionEnabled
→ Future<
bool?> -
Returns the current state of the network session (iOS only)
no setter
-
onBluetoothStateChanged
→ Stream<
String> ? -
Stream firing events whenever the bluetooth central state changes
no setter
-
onMidiDataReceived
→ Stream<
MidiPacket> ? -
no setter
-
onMidiSetupChanged
→ Stream<
String> ? -
Stream firing events whenever a change in the MIDI setup occurs.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addVirtualDevice(
{String? name}) → void - Creates a virtual MIDI source.
-
bluetoothState(
) → Future< String> - Returns the current state of the bluetooth sub system
-
connectToDevice(
MidiDevice device, {List< MidiPort> ? ports}) → Future<void> - Connects to the device.
-
disconnectDevice(
MidiDevice device) → void - Disconnects from the device.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeVirtualDevice(
{String? name}) → void - Removes a previously created virtual MIDI source.
-
sendData(
Uint8List data, {int? timestamp, String? deviceId}) → void - Sends data to the currently connected device.
-
setNetworkSessionEnabled(
bool enabled) → void - Sets the enabled state of the network session (iOS only)
-
startBluetoothCentral(
) → Future< void> - Starts bluetooth subsystem. Shows an alert requesting access rights for bluetooth.
-
startScanningForBluetoothDevices(
) → Future< void> - Starts scanning for BLE MIDI devices.
-
stopScanningForBluetoothDevices(
) → void - Stops scanning for BLE MIDI devices.
-
teardown(
) → void - Disconnects from all devices.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ MidiCommandPlatform
-
The default instance of MidiCommandPlatform to use.
getter/setter pair