DVWindowingCapability class

What a target can actually do with windows.

Read this to decide whether to offer an affordance. Never to decide whether to call DVWindowManager.open — that always presents the route, which is the whole point of a window being one.

Constructors

DVWindowingCapability({bool multiWindow = false, bool sameEngine = false, bool tearOut = false, bool inPageViews = false, bool ownedWindows = false, bool applicationModal = false, bool displays = false, bool displayKiosk = false, DVSpatialCapability? spatial})
const
DVWindowingCapability.desktop()
What a desktop host reports once real windowing is available.
factory

Properties

applicationModal → bool
Whether the OS supports blocking every window of the application.
final
displayKiosk → bool
Whether a window can own a display as a kiosk: pinned, fullscreen, its policy running. True where real windows and display enumeration are both available; the pinning itself is what the OS honours, reported through the kiosk window's enforcement.
final
displays → bool
Whether more than one display is addressable.
final
hashCode → int
The hash code for this object.
no setterinherited
inPageViews → bool
Web only: in-page multi-view embedding for panels and workspace regions.
final
multiWindow → bool
Whether a second OS-level window can exist at all.
final
ownedWindows → bool
Whether the platform has native popup, tooltip and satellite kinds.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sameEngine → bool
Whether windows share one engine, so content can be handed over as the same Dart object tree rather than through the shared store.
final
spatial → DVSpatialCapability?
What the target can do in space: null on every target that is not a headset or glasses. The one capability application code may branch on to decide whether to offer a spatial control.
final
tearOut → bool
Whether a tab can detach into a window by drag.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
withDisplayCount(int count) → DVWindowingCapability
This capability with displays recomputed from a display count.
withSpatial(DVSpatialCapability? spatial) → DVWindowingCapability
This capability with spatial in it.

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

detect({required bool isDesktop, required bool isWeb, required bool isAndroid, required bool isTablet, required bool isIOS, required bool hasNativeWindowBinding, bool kioskLocked = false, bool enabledByConfig = true, bool isTerminal = false, bool? webInPageViews, bool? webOpenInNewWindow, bool? androidFreeform}) → DVWindowingCapability
The capability of the running target.