trait WindowOrWorkerGlobalScope extends Object with WindowBase64 with WindowTimers
The WindowOrWorkerGlobalScope mixin describes several features common to the Window and WorkerGlobalScope interfaces.
Note: WindowOrWorkerGlobalScope is a mixin and not an interface; you can't actually create an object of type WindowOrWorkerGlobalScope.
MDN
- Annotations
- @JSType() @native()
- Alphabetic
- By Inheritance
- WindowOrWorkerGlobalScope
- WindowTimers
- WindowBase64
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def atob(encodedString: String): String
Decodes a string of data which has been encoded using base-64 encoding.
Decodes a string of data which has been encoded using base-64 encoding.
- Definition Classes
- WindowBase64
- def btoa(rawString: String): String
Creates a base-64 encoded ASCII string from a "string" of binary data.
Creates a base-64 encoded ASCII string from a "string" of binary data.
- Definition Classes
- WindowBase64
- def caches: UndefOr[CacheStorage]
Returns the CacheStorage object associated with the current context.
Returns the CacheStorage object associated with the current context. This object enables functionality such as storing assets for offline use, and generating custom responses to requests.
MDN
- def clearInterval(handle: Int): Unit
Cancels repeated action which was set up using setInterval.
Cancels repeated action which was set up using setInterval.
MDN
- Definition Classes
- WindowTimers
- def clearTimeout(handle: Int): Unit
Clears the delay set by window.setTimeout().
Clears the delay set by window.setTimeout().
MDN
- Definition Classes
- WindowTimers
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def createImageBitmap(image: CreateImageBitmapInput, sx: Double, sy: Double, sw: Double, sh: Double, options: CreateImageBitmapOptions): Promise[ImageBitmap]
- def createImageBitmap(image: CreateImageBitmapInput, sx: Double, sy: Double, sw: Double, sh: Double): Promise[ImageBitmap]
- def createImageBitmap(image: CreateImageBitmapInput, options: CreateImageBitmapOptions): Promise[ImageBitmap]
- def createImageBitmap(image: CreateImageBitmapInput): Promise[ImageBitmap]
Accepts a variety of different image sources, and returns a Promise which resolves to an ImageBitmap.
Accepts a variety of different image sources, and returns a Promise which resolves to an ImageBitmap. Optionally the source is cropped to the rectangle of pixels originating at (sx, sy) with width sw, and height sh.
MDN
- def crossOriginIsolated: Boolean
Returns a boolean value that indicates whether a SharedArrayBuffer can be sent via a Window.postMessage() call.
Returns a boolean value that indicates whether a SharedArrayBuffer can be sent via a Window.postMessage() call.
MDN
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fetch(info: RequestInfo, init: RequestInit = null): Promise[Response]
Starts the process of fetching a resource from the network.
Starts the process of fetching a resource from the network.
MDN
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def indexedDB: UndefOr[IDBFactory]
Provides a mechanism for applications to asynchronously access capabilities of indexed databases.
Provides a mechanism for applications to asynchronously access capabilities of indexed databases.
MDN
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- def isSecureContext: Boolean
Returns a boolean indicating whether the current context is secure or not.
Returns a boolean indicating whether the current context is secure or not.
MDN
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def origin: String
Returns the origin of the global scope, serialized as a string.
Returns the origin of the global scope, serialized as a string.
MDN
- def propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- def queueMicrotask(function: Function0[Any]): Unit
Enqueues a microtask—a short function to be executed after execution of the JavaScript code completes and control isn't being returned to a JavaScript caller, but before handling callbacks and other tasks.
Enqueues a microtask—a short function to be executed after execution of the JavaScript code completes and control isn't being returned to a JavaScript caller, but before handling callbacks and other tasks.
This lets your code run without interfering with other, possibly higher priority, code, but before the browser runtime regains control, potentially depending upon the work you need to complete.
MDN
- def setInterval(handler: Function0[Any], timeout: Double): Int
Calls a function or executes a code snippet repeatedly, with a fixed time delay between each call to that function.
Calls a function or executes a code snippet repeatedly, with a fixed time delay between each call to that function.
MDN
- Definition Classes
- WindowTimers
- def setTimeout(handler: Function0[Any], timeout: Double): Int
Calls a function or executes a code snippet after a specified delay.
Calls a function or executes a code snippet after a specified delay.
MDN
- Definition Classes
- WindowTimers
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLocaleString(): String
- Definition Classes
- Object
- def toString(): String
- Definition Classes
- AnyRef → Any
- def valueOf(): Any
- Definition Classes
- Object
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()