UpdateInfo class
A class that includes the update status information.
Constructors
- UpdateInfo({int? status, int? failcause, String? failreason, bool? compulsoryUpdateCancel, int? buttonstatus, ApkUpgradeInfo? apkUpgradeInfo})
- UpdateInfo.fromMap(Map map)
-
factory
Properties
- apkUpgradeInfo ↔ ApkUpgradeInfo?
-
An ApkUpgradeInfo object that contains app update information.
getter/setter pair
-
Indicates whether the user chooses to update the app immediately or later
during non-forcible update.
getter/setter pair
- compulsoryUpdateCancel ↔ bool?
-
Indicates whether the user cancels the update during forcible update.
getter/setter pair
- failcause ↔ int?
-
Result code of the update operation.
getter/setter pair
- failreason ↔ String?
-
Result code description.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ int?
-
App update status.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CANCEL → const int
- Indicates that the user cancels the update.
- CHECK_FAILED → const int
- Indicates that the update information fails to be queried.
- CONNECT_ERROR → const int
- Indicates that the network connection is incorrect.
- HAS_UPGRADE_INFO → const int
- Indicates that an app update is available.
- IN_MARKET_UPDATING → const int
- Indicates that the app is being updated.
- INSTALL_FAILED → const int
- Indicates that the app update fails.
- MARKET_FORBID → const int
- Indicates that Huawei AppGallery is disabled.
- NO_UPGRADE_INFO → const int
- Indicates that no update is available.
- PARAMETER_ERROR → const int
- Indicates that the parameter is incorrect.