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
ConstructorDescriptionCreates newLifecycleSensors
.LifecycleSensors
(boolean application, boolean activity, boolean fragment) Creates newLifecycleSensors
.LifecycleSensors
(LifecycleSensors source) Creates newLifecycleSensors
from a different instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
activity
(boolean activity) Specifies if the sensor for the classActivity
is enabled.void
application
(boolean application) Specifies if the sensor for the classApplication
is enabled.boolean
void
fragment
(boolean fragment) Specifies if the sensor for the classFragment
is enabled.int
hashCode()
boolean
Specifies if the sensor for the classActivity
is enabled.boolean
Specifies if the sensor for the classApplication
is enabled.boolean
Specifies if the sensor for the classFragment
is enabled.toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.dynatrace.tools.android.api.LifecycleSensors
hasActiveSensors
-
Constructor Details
-
LifecycleSensors
public LifecycleSensors()Creates newLifecycleSensors
. -
LifecycleSensors
Creates newLifecycleSensors
from 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 classApplication
is enabled.The default value is true.
- Parameters:
application
- true, if the sensor for the classApplication
is enabled
-
activity
public void activity(boolean activity) Specifies if the sensor for the classActivity
is enabled.The default value is true.
- Parameters:
activity
- true, if the sensor for the classActivity
is enabled
-
fragment
public void fragment(boolean fragment) Specifies if the sensor for the classFragment
is enabled.The default value is false (will be changed when Fragment instrumentation is available).
- Parameters:
fragment
- true, if the sensor for the classFragment
is enabled
-
isApplication
public boolean isApplication()Specifies if the sensor for the classApplication
is enabled.The default value is true.
- Specified by:
isApplication
in interfacecom.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 classActivity
is enabled.The default value is true.
- Specified by:
isActivity
in interfacecom.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 classFragment
is enabled.The default value is false (will be changed when Fragment instrumentation is available).
- Specified by:
isFragment
in interfacecom.dynatrace.tools.android.api.LifecycleSensors
- Returns:
- true, if the sensor for the class
Fragment
is enabled
-
hashCode
public int hashCode() -
equals
-
toString
-