DVPlatform class

Constructors

DVPlatform()
const

Properties

activeHosts → List<DVPlatformHost>
The registered hosts the application is running inside right now.
no setter
apps → DVApps
The installed apps that can be launched (Android).
no setter
associations → DVFileAssociations
What this application opens: registering its own file types with the desktop, for the user running it.
no setter
attachedSurface → DVAttachedSurface?
What the render backend attached (the terminal being drawn into), or null when this is a GUI. Typed access to it comes with the package that installed it.
no setter
Biometrics → DVBiometrics
no setter
biometrics → DVBiometrics
no setter
Bluetooth → DVBluetooth
no setter
bluetooth → DVBluetooth
no setter
breakpoint → String
no setter
Camera → DVCamera
no setter
camera → DVCamera
no setter
Clipboard → DVClipboard
no setter
clipboard → DVClipboard
no setter
Contacts → DVContacts
no setter
contacts → DVContacts
no setter
currentPlatform → String
no setter
DeepLinking → DVDeepLinks
no setter
no setter
device → DVDeviceControls
no setter
deviceOrientation → Orientation
no setter
deviceType → String
no setter
Dialogs → DVDialogs
no setter
dialogs → DVDialogs
The lowerCamel name, matching the rest of DV.*.
no setter
display → DVDisplayControls
no setter
DragDrop → DVDragDrop
no setter
dragDrop → DVDragDrop
What the desktop dropped onto the window. The lowerCamel name, matching the rest of DV.*.
no setter
files → DVFiles
The app's private files through the files.* bindings (Android and web only). Superseded by fileStorage, which is the same place on those two targets and works on every other one.
no setter
FileStorage → DVDeviceStorage
no setter
fileStorage → DVDeviceStorage
DV.FileStorage on the device's own disk: the same calls (put, get, delete, exists, list), bound to the local adapter whatever the app's default adapter is. App-private by default; files and folders the person picks, and the access declared under dartvel.fileStorage, come through DVDeviceStorage.pick, DVDeviceStorage.pickDirectory and DVDeviceStorage.requestAccess.
no setter
fonts → DVSystemFonts
The fonts installed on the machine, and loading one for Flutter text.
no setter
Haptics → DVHaptics
no setter
haptics → DVHaptics
no setter
hashCode → int
The hash code for this object.
no setterinherited
hosts → List<DVPlatformHost>
Every registered host. Empty unless a package registered one.
no setter
install → DVInstall
no setter
isAmazon → bool
no setter
isAndroid → bool
no setter
isAndroidTV → bool
no setter
isAppleTV → bool
Both spellings, because the build reports tvos and this getter has always compared against appletv — a value nothing produced, so it was never true on an actual Apple TV.
no setter
isChromiumExtension → bool
no setter
isDualFold → bool
no setter
isFirefoxExtension → bool
no setter
isFoldable → bool
no setter
isFuchsia → bool
no setter
isHeadset → bool
Whether this build is for a headset. A panel is an ordinary window, so this is for what to offer -- larger targets, a back button where hands have no back gesture -- never for whether a page works. DV.Platform.window.capability.spatial stays null until a registered DVWindowSpaceBackend reports what the headset can present.
no setter
isHorizonOS → bool
A Meta Quest, from dartvel build horizon: an Android app in a 2D panel.
no setter
isIOS → bool
no setter
isLinux → bool
no setter
isMacOS → bool
no setter
isSonyELinux → bool
no setter
isTizen → bool
no setter
isTriFold → bool
no setter
isTV → bool
no setter
isVisionOS → bool
Apple Vision Pro, from dartvel build visionos: the iPad app, Designed for iPad. The same app built with dartvel build ios reports iOS there, because nothing at run time tells it apart without a native binding.
no setter
isWatch → bool
no setter
isWeb → bool
no setter
isWebOS → bool
no setter
isWindows → bool
no setter
launchAtLogin → DVLaunchAtLogin
Starting this application when the user logs in: an XDG autostart entry, the per-user Run key, or a macOS login item.
no setter
Location → DVLocation
no setter
location → DVLocation
no setter
Media → DVMedia
no setter
media → DVMedia
no setter
no setter
The lowerCamel name, matching the rest of DV.*.
no setter
network → DVNetwork
The PWA install prompt, where the platform offers one. What this device can reach, as a signal: online, metered, offline, or unknown where no binding has reported. since is when it last changed.
no setter
NFC → DVNfc
no setter
nfc → DVNfc
no setter
Notifications → DVNotifications
no setter
notifications → DVNotifications
no setter
orientation → Orientation
no setter
permissions → DVPermissions
no setter
Printing → DVPrinting
no setter
printing → DVPrinting
The lowerCamel name, matching the rest of DV.*.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
safeAreas → Map<String, double>
no setter
screen → DVScreen
no setter
screenHeight → double
no setter
screenShape → String
no setter
screenWidth → double
no setter
Sensors → DVSensors
no setter
sensors → DVSensors
no setter
Share → DVShare
no setter
share → DVShare
no setter
Shortcuts → DVShortcuts
no setter
shortcuts → DVShortcuts
The lowerCamel name, matching the rest of DV.*.
no setter
surface → DVRenderSurface
Where this application's frames are landing.
no setter
Tray → DVTray
no setter
tray → DVTray
The lowerCamel name, matching the rest of DV.*.
no setter
type → String
no setter
Window → DVWindowManager
no setter
window → DVWindowManager
The lowerCamel name, matching the rest of DV.*.
no setter

Methods

host(String id) → DVPlatformHost?
The registered host named id, active or not.
hostSignInCredential(String provider) → DVHostCredential?
The credential an active host provides for signing in with provider.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerHost(DVPlatformHost host) → void
Registers the environment the application can be hosted in (a package does this once at startup). A host with the same id is replaced.
toString() → String
A string representation of this object.
inherited
unregisterHost(String id) → void
Forgets the host named id.
useRenderSurface(DVRenderSurface? surface, {DVAttachedSurface? attached}) → void
Installs the surface the runtime actually started on.

Operators

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

Static Methods

installKioskPolicy(DVKioskPolicy policy, {Future<String?> readSecret(String name)?, Future<void> clear(Set<DVKioskClearable> what)?}) → Future<DVDeviceKiosk?>
Installs the declared device-scope kiosk policy: makes the kiosk, enters it and asks the platform to hold it. A disabled policy installs nothing. Called by the generated runtime at start.
uninstallKioskPolicy() → Future<void>
Stops and releases the installed kiosk, if any. For tests and shutdown.