FlutterXUpdate class
Android全量更新插件
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 Methods
-
checkUpdate(
{required String url, Map? params, bool supportBackgroundUpdate = false, bool isAutoMode = false, bool isCustomParse = false, String themeColor = '', String topImageRes = '', String buttonTextColor = '', double? widthRatio, double? heightRatio, bool overrideGlobalRetryStrategy = false, bool enableRetry = false, String retryContent = '', String retryUrl = ''}) → Future< Null> - 检查版本更新(Android Only)
-
defaultUpdateParser(
String json) → Future< UpdateEntity?> - 默认的版本更新检查返回JsonFormat的解析方法
-
init(
{bool debug = false, bool isPost = false, bool isPostJson = false, int timeout = 20000, bool isWifiOnly = true, bool isAutoMode = false, bool supportSilentInstall = false, bool enableRetry = false, String retryContent = '', String retryUrl = '', Map? params}) → Future< Map?> - 初始化插件(Android Only)
-
setCustomParseHandler(
{ParseHandler? onUpdateParse}) → void - 设置自定义解析json的接口(Android Only)
-
setErrorHandler(
{ErrorHandler? onUpdateError}) → void - 设置出错的接口回调(Android Only) 返回内容 { code:错误码 message:错误信息 detailMsg:错误详细信息 }
-
setUpdateHandler(
{ErrorHandler? onUpdateError, ParseHandler? onUpdateParse}) → void - 设置版本更新的回调接口(Android Only)
-
showRetryUpdateTipDialog(
{String retryContent = '', required String retryUrl}) → Future< Null> - 显示重试提示弹窗(Android Only)
-
updateByInfo(
{required UpdateEntity updateEntity, bool supportBackgroundUpdate = false, bool isAutoMode = false, String themeColor = '', String topImageRes = '', String buttonTextColor = '', double? widthRatio, double? heightRatio, bool overrideGlobalRetryStrategy = false, bool enableRetry = false, String retryContent = '', String retryUrl = ''}) → Future< Null> - 检查版本更新(Android Only)