Table of Contents

Class MIDIConnectionEvent

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The MIDIConnectionEvent interface of the Web MIDI API is the event passed to the MIDIAccess.Statechange event of the MIDIAccess interface and the MIDIPort.Statechange 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.

[Value("MIDIConnectionEvent")]
public class MIDIConnectionEvent : Event
Inheritance
MIDIConnectionEvent
Inherited Members

Remarks

Constructors

MIDIConnectionEvent()

public MIDIConnectionEvent()

MIDIConnectionEvent(string, MIDIConnectionEventInit)

The MIDIConnectionEvent() constructor creates a new MIDIConnectionEvent object. Typically this constructor is not used as events are created when a new port becomes available, and the object is passed to the MIDIAccess.Statechange event.

public MIDIConnectionEvent(string type, MIDIConnectionEventInit eventInitDict = null)

Parameters

type string
eventInitDict MIDIConnectionEventInit

Remarks

Properties

Port

The port read-only property of the MIDIConnectionEvent interface returns the port that has been disconnected or connected.

[Value("port")]
public MIDIPort? Port { get; }

Property Value

MIDIPort

A MIDIPort object.

Remarks