ActivityListener
Allows listening to the start and stop activity events and gives the opportunity to decide creating an activity for sampling scenarios.
Gets or sets the callback used to listen to the activity start event.
Gets or sets the callback used to listen to the activity stop event.
Gets or sets the callback that is used to decide if creating Activity objects with a specific data state is allowed.
Gets or sets the callback that is used to decide if creating Activity objects with a specific data state is allowed.
Gets or sets the callback that allows deciding if activity object events that were created using the activity source object should be listened or not.
public ActivityListener()
Construct a new activity listener object to start listeneing to the activity events.
Unregisters this activity listener object from listening to activity events.