Package com.dynatrace.tools.android.dsl
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 Summary
ConstructorsConstructorDescriptionCreates newLifecycleSensors.LifecycleSensors(boolean application, boolean activity, boolean fragment) Creates newLifecycleSensors.LifecycleSensors(LifecycleSensors source) Creates newLifecycleSensorsfrom a different instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidactivity(boolean activity) Specifies if the sensor for the classActivityis enabled.voidapplication(boolean application) Specifies if the sensor for the classApplicationis enabled.booleanvoidfragment(boolean fragment) Specifies if the sensor for the classFragmentis enabled.inthashCode()booleanSpecifies if the sensor for the classActivityis enabled.booleanSpecifies if the sensor for the classApplicationis enabled.booleanSpecifies if the sensor for the classFragmentis enabled.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.dynatrace.tools.android.api.LifecycleSensors
hasActiveSensors
-
Constructor Details
-
LifecycleSensors
public LifecycleSensors()Creates newLifecycleSensors. -
LifecycleSensors
Creates newLifecycleSensorsfrom a different instance.- Parameters:
source- source from which values are copied
-
LifecycleSensors
public LifecycleSensors(boolean application, boolean activity, boolean fragment) Creates newLifecycleSensors.- Parameters:
application- true, if application monitoring is onactivity- true, if activity monitoring is onfragment- true, if fragment monitoring is on
-
-
Method Details
-
application
public void application(boolean application) Specifies if the sensor for the classApplicationis enabled.The default value is true.
- Parameters:
application- true, if the sensor for the classApplicationis enabled
-
activity
public void activity(boolean activity) Specifies if the sensor for the classActivityis enabled.The default value is true.
- Parameters:
activity- true, if the sensor for the classActivityis enabled
-
fragment
public void fragment(boolean fragment) Specifies if the sensor for the classFragmentis enabled.The default value is false (will be changed when Fragment instrumentation is available).
- Parameters:
fragment- true, if the sensor for the classFragmentis enabled
-
isApplication
public boolean isApplication()Specifies if the sensor for the classApplicationis enabled.The default value is true.
- Specified by:
isApplicationin interfacecom.dynatrace.tools.android.api.LifecycleSensors- Returns:
- true, if the sensor for the class
Applicationis enabled
-
isActivity
public boolean isActivity()Specifies if the sensor for the classActivityis enabled.The default value is true.
- Specified by:
isActivityin interfacecom.dynatrace.tools.android.api.LifecycleSensors- Returns:
- true, if the sensor for the class
Activityis enabled
-
isFragment
public boolean isFragment()Specifies if the sensor for the classFragmentis enabled.The default value is false (will be changed when Fragment instrumentation is available).
- Specified by:
isFragmentin interfacecom.dynatrace.tools.android.api.LifecycleSensors- Returns:
- true, if the sensor for the class
Fragmentis enabled
-
hashCode
public int hashCode() -
equals
-
toString
-