Trait

org.scalajs.dom

WindowClient

Related Doc: package dom

Permalink

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()
Linear Supertypes
Client, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WindowClient
  2. Client
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def focus(): Promise[WindowClient]

    Permalink

    Gives user input focus to the current client and returns a Promise that resolves to the existing WindowClient.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def focused: Boolean

    Permalink

    The focused read-only property of the WindowClient interface is a Boolean that indicates whether the current client has focus.

  10. def frameType: FrameType

    Permalink
    Definition Classes
    Client
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. def id: String

    Permalink

    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
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  17. def navigate(url: String): Promise[WindowClient]

    Permalink

    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

  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. def postMessage(message: Any, transfer: UndefOr[Array[Transferable]] = js.native): Unit

    Permalink

    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
  22. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. def url: String

    Permalink

    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
  27. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  28. def visibilityState: String

    Permalink

    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.

  29. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Client

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped