ApkUpgradeInfo class

A class that includes the details about an upgrade apk.

An app does not need to pay attention to parameters in this object. During app update, the showUpdateDialog method is called to directly pass the ApkUpgradeInfo object obtained from the checkAppUpdate callback result.

Constructors

ApkUpgradeInfo({String? name, String? id, String? releaseDate, int? versionCode, String? package, String? icon, String? downUrl, int? size, int? diffSize, String? version, int? isSignatureDifferent, String? newFeatures, String? releaseDateDesc, String? detailId, int? isCompulsoryUpdate, int? devType, String? oldVersionName, int? oldVersionCode, String? notRcmReason, String? sha256})
ApkUpgradeInfo.fromMap(Map map)
factory

Properties

detailId String?
ID of the AppGallery request details API.
getter/setter pair
devType int?
Indicates whether the app is a Huawei-Developed app 0: No. 1: Yes.
getter/setter pair
diffSize int?
Size of the differential package.
getter/setter pair
downUrl String?
URL for downloading the complete or differential app package.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
icon String?
URL of the app icon.
getter/setter pair
id String?
App ID.
getter/setter pair
isCompulsoryUpdate int?
Indicates whether the update is forcible. 0: No. 1: Yes.
getter/setter pair
isSignatureDifferent int?
Indicates whether the signature is different. 0: No. 1: Yes.
getter/setter pair
name String?
App name.
getter/setter pair
newFeatures String?
New features.
getter/setter pair
notRcmReason String?
Reason for not recommending the update.
getter/setter pair
oldVersionCode int?
Soruce version number.
getter/setter pair
oldVersionName String?
Source version name.
getter/setter pair
package String?
Package name parsed from the APK.
getter/setter pair
releaseDate String?
App release time, accurate to day. The value is in the yyyy-MM-dd format.
getter/setter pair
releaseDateDesc String?
App update time description, for example, "released on X."" The value is calculated by the server and displayed on the client.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sha256 String?
SHA-256 value of the app package.
getter/setter pair
size int?
Size of the app of the target version.
getter/setter pair
version String?
Target version name.
getter/setter pair
versionCode int?
Internal version number parsed from the APK.
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.
override

Operators

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