Skip to content

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
Annotations

Constructors

AppLifecycleEvent.fromJson

AppLifecycleEvent.fromJson(
  1. Map<String, dynamic> json
)

AppLifecycleEvent

AppLifecycleEvent(
  1. String state
)

Properties

fromJsonFunction

Function get fromJsonFunction
override

The function which can convert a JSON string to an object of this type.

state

String state
getter/setter pair

The name of the AppLifecycleState, e.g. resumed.

Methods

equivalentTo

bool equivalentTo(
  1. Data other
)
override

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

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.