DesktopUpdaterPlatform class abstract

Platform interface implemented by macOS, Windows, and Linux helpers.

Inheritance
  • Object
  • PlatformInterface
  • DesktopUpdaterPlatform
Implementers

Constructors

DesktopUpdaterPlatform()
Constructs a DesktopUpdaterPlatform.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getCurrentVersion() Future<String?>
Returns the raw current app version string from the native plugin.
getExecutablePath() Future<String?>
Returns the current executable path when the platform supports it.
getPlatformVersion() Future<String?>
Returns a platform-specific version string from the native plugin.
installUpdate({required String stagingPath, List<String> removedFiles = const [], bool allowUnsignedMacOSUpdates = false, String? diagnosticsLogPath}) Future<void>
Installs a staged update, then lets the native helper relaunch the app.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
restartApp() Future<void>
Restarts the current app without installing a staged update.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance DesktopUpdaterPlatform
The default instance of DesktopUpdaterPlatform to use.
getter/setter pair