MIDIPort 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 represents a MIDI input or output port. A instance is created when a new MIDI device is connected. Therefore it has no constructor.

EventTarget

MIDIPort

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

Constructors

MIDIPort()
factory

Properties

connection MIDIPortConnectionState

Available on MIDIPort, provided by the PropsMIDIPort extension

no setter
hashCode int
The hash code for this object.
no setterinherited
id String

Available on MIDIPort, provided by the PropsMIDIPort extension

no setter
manufacturer String?

Available on MIDIPort, provided by the PropsMIDIPort extension

no setter
name String?

Available on MIDIPort, provided by the PropsMIDIPort extension

no setter
onstatechange EventHandlerNonNull<Event>?

Available on MIDIPort, provided by the PropsMIDIPort extension

getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state MIDIPortDeviceState

Available on MIDIPort, provided by the PropsMIDIPort extension

no setter
type MIDIPortType

Available on MIDIPort, provided by the PropsMIDIPort extension

no setter
version String?

Available on MIDIPort, provided by the PropsMIDIPort extension

no setter

Methods

addEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

close() Future<MIDIPort>

Available on MIDIPort, provided by the PropsMIDIPort extension

dispatchEvent(Event event) bool

Available on EventTarget, provided by the PropsEventTarget extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open() Future<MIDIPort>

Available on MIDIPort, provided by the PropsMIDIPort extension

removeEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

toString() String
A string representation of this object.
inherited

Operators

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