Window
abstract
class
Window
:
EventTarget
,
GlobalEventHandlers
,
WindowEventHandlers
,
WindowOrWorkerGlobalScope
,
WindowSessionStorage
,
WindowLocalStorage
,
GlobalPerformance
,
UnionMessagePortOrWindowProxy
(source)
Exposes the JavaScript Window to Kotlin
Constructors
Properties
applicationCache
open
val
applicationCache
:
ApplicationCache
closed
open
val
closed
:
Boolean
customElements
open
val
customElements
:
CustomElementRegistry
devicePixelRatio
open
val
devicePixelRatio
:
Double
frameElement
open
val
frameElement
:
Element
?
innerHeight
open
val
innerHeight
:
Int
innerWidth
open
val
innerWidth
:
Int
length
open
val
length
:
Int
locationbar
open
val
locationbar
:
BarProp
name
open
var
name
:
String
opener
open
var
opener
:
Any
?
outerHeight
open
val
outerHeight
:
Int
outerWidth
open
val
outerWidth
:
Int
pageXOffset
open
val
pageXOffset
:
Double
pageYOffset
open
val
pageYOffset
:
Double
personalbar
open
val
personalbar
:
BarProp
screenX
open
val
screenX
:
Int
screenY
open
val
screenY
:
Int
scrollbars
open
val
scrollbars
:
BarProp
scrollX
open
val
scrollX
:
Double
scrollY
open
val
scrollY
:
Double
status
open
var
status
:
String
Functions
alert
fun
alert
(
)
fun
alert
(
message
:
String
)
blur
fun
blur
(
)
cancelAnimationFrame
fun
cancelAnimationFrame
(
handle
:
Int
)
captureEvents
fun
captureEvents
(
)
close
fun
close
(
)
confirm
fun
confirm
(
message
:
String
=
definedExternally
)
:
Boolean
focus
fun
focus
(
)
getComputedStyle
fun
getComputedStyle
(
elt
:
Element
,
pseudoElt
:
String
?
=
definedExternally
)
:
CSSStyleDeclaration
matchMedia
fun
matchMedia
(
query
:
String
)
:
MediaQueryList
moveBy
fun
moveBy
(
x
:
Int
,
y
:
Int
)
moveTo
fun
moveTo
(
x
:
Int
,
y
:
Int
)
open
fun
open
(
url
:
String
=
definedExternally
,
target
:
String
=
definedExternally
,
features
:
String
=
definedExternally
)
:
Window
?
postMessage
fun
postMessage
(
message
:
Any
?
,
targetOrigin
:
String
,
transfer
:
Array
<
dynamic
>
=
definedExternally
)
fun
print
(
)
prompt
fun
prompt
(
message
:
String
=
definedExternally
,
default
:
String
=
definedExternally
)
:
String
?
releaseEvents
fun
releaseEvents
(
)
requestAnimationFrame
fun
requestAnimationFrame
(
callback
:
(
Double
)
->
Unit
)
:
Int
resizeBy
fun
resizeBy
(
x
:
Int
,
y
:
Int
)
resizeTo
fun
resizeTo
(
x
:
Int
,
y
:
Int
)
scroll
fun
scroll
(
options
:
ScrollToOptions
=
definedExternally
)
fun
scroll
(
x
:
Double
,
y
:
Double
)
scrollBy
fun
scrollBy
(
options
:
ScrollToOptions
=
definedExternally
)
fun
scrollBy
(
x
:
Double
,
y
:
Double
)
scrollTo
fun
scrollTo
(
options
:
ScrollToOptions
=
definedExternally
)
fun
scrollTo
(
x
:
Double
,
y
:
Double
)
stop
fun
stop
(
)