SentryApp class

App context describes the application.

As opposed to the runtime, this is the actual application that was running and carries metadata about the current session.

Annotations
  • @immutable

Constructors

SentryApp({String? name, String? version, String? identifier, String? build, String? buildType, DateTime? startTime, String? deviceAppHash, int? appMemory, bool? inForeground, List<String>? viewNames, double? textScale, Map<String, dynamic>? unknown})
const
SentryApp.fromJson(Map<String, dynamic> data)
Deserializes a SentryApp from JSON Map.
factory

Properties

appMemory int?
Amount of memory used by the application in bytes.
final
build String?
Internal build identifier, as it appears on the platform.
final
buildType String?
String identifying the kind of build, e.g. testflight.
final
deviceAppHash String?
Application specific device identifier.
final
hashCode int
The hash code for this object.
no setterinherited
identifier String?
Version-independent application identifier, often a dotted bundle ID.
final
inForeground bool?
A flag indicating whether the app is in foreground or not. An app is in foreground when it's visible to the user.
final
name String?
Human readable application name, as it appears on the platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startTime DateTime?
When the application was started by the user.
final
textScale double?
The current text scale. Only available on Flutter.
final
unknown Map<String, dynamic>?
final
version String?
Human readable application version, as it appears on the platform.
final
viewNames List<String>?
The names of the currently visible views.
final

Methods

clone() SentryApp
copyWith({String? name, String? version, String? identifier, String? build, String? buildType, DateTime? startTime, String? deviceAppHash, int? appMemory, bool? inForeground, List<String>? viewNames, double? textScale}) SentryApp
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Produces a Map that can be serialized to JSON.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

type → const String