AppUpgrade class

Constructors

AppUpgrade()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

apkDownloadPath Future<String>
获取下载好的 apk 完整地址
no setter
appInfo Future<AppInfo>
获取当前应用的信息
no setter

Static Methods

appUpgrade(BuildContext context, Future<AppUpgradeInfo?> future, {TextStyle? titleStyle, TextStyle? contentStyle, String? cancelText, TextStyle? cancelTextStyle, String? okText, TextStyle? okTextStyle, List<Color>? okBackgroundColors, Color? progressBarColor, double borderRadius = 20.0, String? iosAppId, AppMarketInfo? appMarketInfo, VoidCallback? onCancel, VoidCallback? onOk, DownloadProgressCallback? downloadProgress, DownloadStatusChangeCallback? downloadStatusChange, bool isDark = false}) → dynamic
getInstallMarket({List<String>? marketPackageNames}) Future<List<String>>
获取本机安装的应用市场
installAppForAndroid(String path) Future<void>
安装 apk
toAppStore(String appId) Future<void>
跳转 App Store
toMarket({AppMarketInfo? appMarketInfo}) Future<void>
跳转应用市场