toggle menu
kilua-project
0.0.17
common
switch theme
search in API
kilua-dom
/
web.dom.encryptedmedia
/
MediaKeySession
Media
Key
Session
abstract
class
MediaKeySession
:
EventTarget
,
JsAny
Exposes the JavaScript
MediaKeySession
to Kotlin
Members
Constructors
Media
Key
Session
Link copied to clipboard
constructor
(
)
Properties
closed
Link copied to clipboard
open
val
closed
:
Promise
<
Nothing
?
>
expiration
Link copied to clipboard
open
val
expiration
:
Double
key
Statuses
Link copied to clipboard
open
val
keyStatuses
:
MediaKeyStatusMap
onkeystatuseschange
Link copied to clipboard
open
var
onkeystatuseschange
:
(
Event
)
->
Unit
?
onmessage
Link copied to clipboard
open
var
onmessage
:
(
MessageEvent
)
->
Unit
?
session
Id
Link copied to clipboard
open
val
sessionId
:
String
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
)
close
Link copied to clipboard
fun
close
(
)
:
Promise
<
Nothing
?
>
dispatch
Event
Link copied to clipboard
fun
dispatchEvent
(
event
:
Event
)
:
Boolean
generate
Request
Link copied to clipboard
fun
generateRequest
(
initDataType
:
String
,
initData
:
JsAny
?
)
:
Promise
<
Nothing
?
>
load
Link copied to clipboard
fun
load
(
sessionId
:
String
)
:
Promise
<
*
>
remove
Link copied to clipboard
fun
remove
(
)
:
Promise
<
Nothing
?
>
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
)
update
Link copied to clipboard
fun
update
(
response
:
JsAny
?
)
:
Promise
<
Nothing
?
>