WindowClient class
The interface of the ServiceWorker API represents the scope of a service worker client that is a document in a browsing context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources.
Client
WindowClient
- Implemented types
- Available extensions
- Annotations
-
- @experimental
- @JS()
- @staticInterop
Constructors
- WindowClient()
-
factory
Properties
-
ancestorOrigins
→ Iterable<
String> -
Available on WindowClient, provided by the PropsWindowClient extension
no setter - focused → bool
-
Available on WindowClient, provided by the PropsWindowClient extension
no setter - frameType → FrameType
-
Available on Client, provided by the PropsClient extension
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Available on Client, provided by the PropsClient extension
no setter - lifecycleState → ClientLifecycleState
-
Available on Client, provided by the PropsClient extension
no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → ClientType
-
Available on Client, provided by the PropsClient extension
no setter - url → String
-
Available on Client, provided by the PropsClient extension
no setter - visibilityState → DocumentVisibilityState
-
Available on WindowClient, provided by the PropsWindowClient extension
no setter
Methods
-
focus(
) → Future< WindowClient> -
Available on WindowClient, provided by the PropsWindowClient extension
-
Available on WindowClient, provided by the PropsWindowClient extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
postMessage(
dynamic message, Iterable transfer) → void -
Available on Client, provided by the PropsClient extension
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited