toggle menu
kilua-project
0.0.15
common
switch theme
search in API
kilua-dom
/
web.dom.mediacapture
/
MediaDevices
Media
Devices
abstract
class
MediaDevices
:
EventTarget
,
JsAny
Exposes the JavaScript
MediaDevices
to Kotlin
Members
Constructors
Media
Devices
Link copied to clipboard
constructor
(
)
Properties
ondevicechange
Link copied to clipboard
open
var
ondevicechange
:
(
Event
)
->
Unit
?
Functions
add
Event
Listener
Link copied to clipboard
fun
addEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
)
fun
addEventListener
(
type
:
String
,
callback
:
EventListener
?
)
fun
addEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
,
options
:
Boolean
)
fun
addEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
,
options
:
AddEventListenerOptions
)
fun
addEventListener
(
type
:
String
,
callback
:
EventListener
?
,
options
:
Boolean
)
fun
addEventListener
(
type
:
String
,
callback
:
EventListener
?
,
options
:
AddEventListenerOptions
)
dispatch
Event
Link copied to clipboard
fun
dispatchEvent
(
event
:
Event
)
:
Boolean
enumerate
Devices
Link copied to clipboard
fun
enumerateDevices
(
)
:
Promise
<
*
>
get
Supported
Constraints
Link copied to clipboard
fun
getSupportedConstraints
(
)
:
MediaTrackSupportedConstraints
get
User
Media
Link copied to clipboard
fun
getUserMedia
(
constraints
:
MediaStreamConstraints
)
:
Promise
<
*
>
remove
Event
Listener
Link copied to clipboard
fun
removeEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
)
fun
removeEventListener
(
type
:
String
,
callback
:
EventListener
?
)
fun
removeEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
,
options
:
Boolean
)
fun
removeEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
,
options
:
EventListenerOptions
)
fun
removeEventListener
(
type
:
String
,
callback
:
EventListener
?
,
options
:
Boolean
)
fun
removeEventListener
(
type
:
String
,
callback
:
EventListener
?
,
options
:
EventListenerOptions
)