Class LifecycleSensors

java.lang.Object
com.dynatrace.tools.android.dsl.LifecycleSensors
All Implemented Interfaces:
com.dynatrace.tools.android.api.LifecycleSensors, Serializable

public class LifecycleSensors extends Object implements Serializable, com.dynatrace.tools.android.api.LifecycleSensors
DSL object for configuring the sensor options of the lifecycle monitoring feature.
See Also:
  • Constructor Details

    • LifecycleSensors

      public LifecycleSensors()
      Creates new LifecycleSensors.
    • LifecycleSensors

      public LifecycleSensors(LifecycleSensors source)
      Creates new LifecycleSensors from a different instance.
      Parameters:
      source - source from which values are copied
    • LifecycleSensors

      public LifecycleSensors(boolean application, boolean activity, boolean fragment)
      Creates new LifecycleSensors.
      Parameters:
      application - true, if application monitoring is on
      activity - true, if activity monitoring is on
      fragment - true, if fragment monitoring is on
  • Method Details

    • application

      public void application(boolean application)
      Specifies if the sensor for the class Application is enabled.

      The default value is true.

      Parameters:
      application - true, if the sensor for the class Application is enabled
    • activity

      public void activity(boolean activity)
      Specifies if the sensor for the class Activity is enabled.

      The default value is true.

      Parameters:
      activity - true, if the sensor for the class Activity is enabled
    • fragment

      public void fragment(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).

      Parameters:
      fragment - true, if the sensor for the class Fragment is enabled
    • isApplication

      public boolean isApplication()
      Specifies if the sensor for the class Application is enabled.

      The default value is true.

      Specified by:
      isApplication in interface com.dynatrace.tools.android.api.LifecycleSensors
      Returns:
      true, if the sensor for the class Application is enabled
    • isActivity

      public boolean isActivity()
      Specifies if the sensor for the class Activity is enabled.

      The default value is true.

      Specified by:
      isActivity in interface com.dynatrace.tools.android.api.LifecycleSensors
      Returns:
      true, if the sensor for the class Activity is enabled
    • isFragment

      public boolean isFragment()
      Specifies if the sensor for the class Fragment is enabled.

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

      Specified by:
      isFragment in interface com.dynatrace.tools.android.api.LifecycleSensors
      Returns:
      true, if the sensor for the class Fragment is enabled
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object