UAApplicationMetrics

Objective-C

@interface UAApplicationMetrics : NSObject

Swift

class UAApplicationMetrics : NSObject

The UAApplicationMetrics class keeps track of application-related metrics.

Application Metrics Properties

  • The date of the last time the application was active. Only tracked if UAFeatureInAppAutomation or UAFeatureAnalytics are enabled in the privacy manager.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nullable) NSDate *lastApplicationOpenDate;

    Swift

    var lastApplicationOpenDate: Date? { get }
  • The application’s current short version string.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull currentAppVersion;

    Swift

    var currentAppVersion: String { get }
  • Determines whether the application’s short version string has been updated. Only tracked if UAFeatureInAppAutomation or UAFeatureAnalytics are enabled in the privacy manager.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isAppVersionUpdated;

    Swift

    var isAppVersionUpdated: Bool { get }