LifecycleSensors

API Documentation:LifecycleSensors

DSL object for configuring the sensor options of the lifecycle monitoring feature.

Properties

PropertyDescription
activity

Specifies if the sensor for the class Activity is enabled.

application

Specifies if the sensor for the class Application is enabled.

fragment

Specifies if the sensor for the class Fragment is enabled.

Methods

No methods

Script blocks

No script blocks

Property details

boolean activity

Specifies if the sensor for the class Activity is enabled.

The default value is true.

boolean application

Specifies if the sensor for the class Application is enabled.

The default value is true.

boolean fragment

Specifies if the sensor for the class Fragment is enabled.

The default value is false (will be changed when Fragment instrumentation is available).