AppLifecycleEvent
A change in the app's AppLifecycleState.
Collected by AppLifecycleProbe for the DeviceSamplingPackage.APP_LIFECYCLE_EVENT measure.
state can be one of the following state:
- inactive
- hidden
- paused
- resumed
- detached
See AppLifecycleState for details.
- Inheritance
-
- Object
- Serializable
- Data
- AppLifecycleEvent
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)
Constructors
AppLifecycleEvent.fromJson
AppLifecycleEvent
- String state
Properties
fromJsonFunction
The function which can convert a JSON string to an object of this type.
state
getter/setter pair
The name of the AppLifecycleState, e.g. resumed.
Methods
equivalentTo
Is this data equivalent to other?
This is a custom 'soft' equal (==) operator used to compare two data objects. Used in triggering when some data is collected. Override in subclasses to provide custom equivalence checking.
toJson
Return a JSON encoding of this object.