toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-browser
/
web.midi
/
MIDIPort
MIDIPort
open
external
class
MIDIPort
:
EventTarget
(
source
)
Available only in secure contexts.
MDN Reference
Inheritors
MIDIInput
MIDIOutput
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
name
Link copied to clipboard
val
name
:
String
?
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
>