MethodChannelDesktopUpdater class
An implementation of DesktopUpdaterPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- DesktopUpdaterPlatform
- MethodChannelDesktopUpdater
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- nativeInstallRecovery → NativeInstallRecovery
-
Typed native recovery capability for this platform.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkMacOSInstallLocation(
) → Future< MacOSInstallLocationStatus> -
Returns macOS install-location status when supported.
override
-
getCurrentVersion(
) → Future< String?> -
Returns the raw current app version string from the native plugin.
override
-
getCurrentVersionInfo(
) → Future< Map< String, String?> ?> - Returns structured native version metadata for update checks.
-
getExecutablePath(
) → Future< String?> -
Returns the current executable path when the platform supports it.
override
-
getPlatformVersion(
) → Future< String?> -
Returns a platform-specific version string from the native plugin.
override
-
installVerifiedUpdate(
VerifiedNativeInstallRequest request) → Future< void> -
Installs a verified staged update, then lets the native helper relaunch.
override
-
moveMacOSAppToApplications(
{bool replaceExisting = false}) → Future< void> -
Moves the running macOS app to
/Applications.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openMacOSBackgroundItemsSettings(
) → Future< void> -
Opens the macOS Background Items settings for helper approval.
override
-
queryInstallTransaction(
String transactionId) → Future< NativeInstallTransactionStatus> - Queries read-only transaction status from the authenticated native helper.
-
recoverPendingInstallTransaction(
String transactionId) → Future< NativeInstallTransactionStatus> - Asks the authenticated native helper to recover its pending transaction.
-
resolvePendingInstallTransactionAfterExit(
String transactionId) → Future< NativeInstallTransactionStatus> - Acknowledges active recovery, exits, then lets the helper recover and relaunch with the captured caller token.
-
restartApp(
) → Future< void> -
Restarts the current app without installing a staged update.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited