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.
MDN
- Annotations
- @JSType() @native()
- Alphabetic
- By Inheritance
- WindowClient
- Client
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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.
Gives user input focus to the current client and returns a Promise that resolves to the existing WindowClient.
MDN
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( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): 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.
The focused read-only property of the WindowClient interface is a Boolean that indicates whether the current client has focus.
MDN
-
def
frameType: FrameType
- Definition Classes
- Client
-
final
def
getClass(): Class[_]
- 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: Sequence[Transferable] = null): Unit
- message
the spec says this is of type any (?!)
- transfer
https://html.spec.whatwg.org/multipage/infrastructure.html#transferable-objects
- 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.
MDN
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()