MIDIConnectionEvent class

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. The interface of the Web MIDI API is the event passed to the onstatechange event handler of the MIDIAccess interface and the onstatechange event of the MIDIPort interface. This occurs any time a new port becomes available, or when a previously available port becomes unavailable. For example, this event is fired whenever a MIDI device is either plugged in to or unplugged from a computer.

Event

MIDIConnectionEvent

Implemented types
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

MIDIConnectionEvent(String type, [MIDIConnectionEventInit? eventInitDict])
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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