Kotlin Wrappers API Reference
Toggle table of contents
common
Platform filter
common
Switch theme
kotlin-browser
/
web.midi
/
MIDIOutput
MIDIOutput
class
MIDIOutput
:
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
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
>
send
Link copied to clipboard
fun
send
(
data
:
ReadonlyArray
<
JsDouble
>
,
timestamp
:
DOMHighResTimeStamp
=
definedExternally
)
MDN Reference
when
Link copied to clipboard
fun
<
T
:
Event
>
when
(
type
:
EventType
<
T
>
,
options
:
ObservableEventListenerOptions
?
)
:
Observable
<
T
>