EasyAppInstaller class

Constructors

EasyAppInstaller.internal()

Properties

hashCode int
The hash code for this object.
no setterinherited
platformVersion Future<String?>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelDownload(String cancelTag) Future<void>
取消下载中的任务 仅支持Android
dispose() → void
销毁资源
downloadAndInstallApk({required String fileUrl, required String fileDirectory, required String fileName, bool isDeleteOriginalFile = true, String? explainContent, String? positiveText, String? negativeText, dynamic onDownloadingListener(double progress)?, dynamic onCancelTagListener(String cancelTag)?, OnStateChangeListener? onStateListener}) Future<bool>
下载APK到沙盒目录下,并执行安装操作
installApk(String filePath, {String? explainContent, String? positiveText, String? negativeText}) Future<String>
安装apk,内部已处理 '允许应用内安装其他应用' 权限
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openAppMarket({String applicationPackageName = "", String targetMarketPackageName = "", bool isOpenSystemMarket = true}) Future<bool>
打开应用市场-当前应用详情页面
openAppSettingDetails({String applicationPackageName = ""}) Future<bool>
打开设置-应用详情页
openAppStore(String appId) Future<bool>
打开AppStore
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance EasyAppInstaller
no setter