MethodChannelMidiCommand class
An implementation of MidiCommandPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- MidiCommandPlatform
- MethodChannelMidiCommand
Constructors
Properties
-
devices
→ Future<
List< MidiDevice> ?> -
Returns a list of found MIDI devices.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isNetworkSessionEnabled
→ Future<
bool?> -
Returns the current state of the network session
no setteroverride
-
onBluetoothStateChanged
→ Stream<
String> ? -
Stream firing events whenever a change in bluetooth central state happens
no setteroverride
-
onMidiDataReceived
→ Stream<
MidiPacket> ? -
Stream firing events whenever a midi package is received.
no setteroverride
-
onMidiSetupChanged
→ Stream<
String> ? -
Stream firing events whenever a change in the MIDI setup occurs.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addVirtualDevice(
{String? name}) → void -
Creates a virtual MIDI source
override
-
bluetoothState(
) → Future< String> -
Returns the current state of the bluetooth subsystem
override
-
connectToDevice(
MidiDevice device, {List< MidiPort> ? ports}) → Future<void> -
Connects to the device.
override
-
disconnectDevice(
MidiDevice device) → void -
Disconnects from the device.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeVirtualDevice(
{String? name}) → void -
Removes a previously addd virtual MIDI source.
override
-
sendData(
Uint8List data, {int? timestamp, String? deviceId}) → void -
Sends data to the currently connected device.
override
-
setNetworkSessionEnabled(
bool enabled) → void -
Sets the enabled state of the network session
override
-
startBluetoothCentral(
) → Future< void> -
Starts bluetooth subsystem.
override
-
startScanningForBluetoothDevices(
) → Future< void> -
Starts scanning for BLE MIDI devices.
override
-
stopScanningForBluetoothDevices(
) → void -
Stops scanning for BLE MIDI devices.
override
-
teardown(
) → void -
Disconnects from all devices.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited