trait WindowClient extends Object with Client
The WindowClient interface of the ServiceWorker API represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources.
- Annotations
- @JSType() @native()
- Alphabetic
- By Inheritance
- WindowClient
- Client
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def focus(): Promise[WindowClient]
Gives user input focus to the current client and returns a Promise that resolves to the existing WindowClient.
Concrete 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 clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def focused: Boolean
The focused read-only property of the WindowClient interface is a Boolean that indicates whether the current client has focus.
- def frameType: FrameType
- Definition Classes
- Client
- 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 id: String
The id attribute must return its associated service worker client's id.
The id attribute must return its associated service worker client's id.
- Definition Classes
- Client
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- def navigate(url: String): Promise[WindowClient]
See ¶4.2.8 navigate(url) of ServiceWorker whatwg spec.
See ¶4.2.8 navigate(url) of ServiceWorker whatwg spec.
- returns
Promse[WindowClient] or
null
- 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 postMessage(message: Any, transfer: UndefOr[Array[Transferable]] = js.native): Unit
Allows a service worker to send a message to a client (a Window, Worker, or SharedWorker).
Allows a service worker to send a message to a client (a Window, Worker, or SharedWorker). The message is received in the "message" event on navigator.serviceWorker.
- transfer
A sequence of objects that are transferred with the message. The ownership of these objects is given to the destination side and they are no longer usable on the sending side.
- Definition Classes
- Client
- def propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLocaleString(): String
- Definition Classes
- Object
- def toString(): String
- Definition Classes
- AnyRef → Any
- def url: String
The url attribute must return the context object's associated service worker client's serialized creation url.
The url attribute must return the context object's associated service worker client's serialized creation url.
- Definition Classes
- Client
- def valueOf(): Any
- Definition Classes
- Object
- def visibilityState: String
The visibilityState read-only property of the WindowClient interface indicates the visibility of the current client.
The visibilityState read-only property of the WindowClient interface indicates the visibility of the current client. This value can be one of hidden, visible, prerender, or unloaded.
- 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()