toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-browser
/
web.midi
/
MIDIInput
MIDIInput
sealed
external
class
MIDIInput
:
MIDIPort
(
source
)
Available only in secure contexts.
MDN Reference
Members
Properties
connection
Link copied to clipboard
val
connection
:
MIDIPortConnectionState
MDN Reference
id
Link copied to clipboard
val
id
:
String
MDN Reference
manufacturer
Link copied to clipboard
val
manufacturer
:
String
?
MDN Reference
midi
Message
Event
Link copied to clipboard
val
midiMessageEvent
:
EventInstance
<
MIDIMessageEvent
,
MIDIInput
,
MIDIInput
>
MDN Reference
name
Link copied to clipboard
val
name
:
String
?
MDN Reference
onmidimessage
Link copied to clipboard
var
onmidimessage
:
EventHandler
<
MIDIMessageEvent
,
MIDIInput
,
MIDIInput
>
?
MDN Reference
onstatechange
Link copied to clipboard
var
onstatechange
:
EventHandler
<
MIDIConnectionEvent
,
MIDIPort
,
MIDIPort
>
?
MDN Reference
state
Link copied to clipboard
val
state
:
MIDIPortDeviceState
MDN Reference
state
Change
Event
Link copied to clipboard
val
stateChangeEvent
:
EventInstance
<
MIDIConnectionEvent
,
MIDIPort
,
MIDIPort
>
MDN Reference
type
Link copied to clipboard
val
type
:
MIDIPortType
MDN Reference
version
Link copied to clipboard
val
version
:
String
?
MDN Reference
Functions
close
Link copied to clipboard
suspend
fun
close
(
)
:
MIDIPort
MDN Reference
close
Async
Link copied to clipboard
fun
closeAsync
(
)
:
Promise
<
MIDIPort
>
dispatch
Event
Link copied to clipboard
fun
dispatchEvent
(
event
:
Event
)
:
Boolean
open
Link copied to clipboard
suspend
fun
open
(
)
:
MIDIPort
MDN Reference
open
Async
Link copied to clipboard
fun
openAsync
(
)
:
Promise
<
MIDIPort
>