ApplicationInformation
Name, version and install information about the app collecting the data.
Collected by ApplicationProbe for the DeviceSamplingPackage.APPLICATION_INFORMATION measure.
Uses the same data structure as the package_info_plus package.
- Inheritance
-
- Object
- Serializable
- Data
- ApplicationInformation
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
ApplicationInformation.fromJson
ApplicationInformation.fromPackageInfo
- PackageInfo info
Creates an ApplicationInformation from the package_info_plus info.
ApplicationInformation
Properties
appName
The app name.
CFBundleDisplayNameon iOS - falls back toCFBundleName. Defined in theinfo.plistand/or product target in xcode.application/labelon Android. Defined inAndroidManifest.xmlor String resources.
buildNumber
The build number. Generated from the version in pubspec.yaml.
CFBundleVersionon iOS.versionCodeon Android.
Note, on iOS if an app has no buildNumber specified this property will return version. Docs about CFBundleVersion: https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleversion
buildSignature
The build signature. SHA-256 signing key signature (hex) on Android. Empty string on iOS.
fromJsonFunction
The function which can convert a JSON string to an object of this type.
installTime
The time when the application was installed.
- On Android, returns
PackageManager.firstInstallTime - On iOS, return the creation date of the app default
NSDocumentDirectory
installerStore
The installer store. Indicates through which store this application was installed.
packageName
The package name.
bundleIdentifieron iOS and macOS. Defined in the product target in xcode.packageNameon Android. Defined inbuild.gradleasapplicationId.
updateTime
The time when the application was last updated.
- On Android, returns
PackageManager.lastUpdateTime - On iOS return the last modified date of the app main bundle
version
The package version. Generated from the version in pubspec.yaml.
CFBundleShortVersionStringon iOS.versionNameon Android.
Methods
equivalentTo
Returns true if the appName is equal.
toJson
Return a JSON encoding of this object.