TrackingService

abstract class TrackingService(context: Context) : BaseService

A base abstract class for a TracksService in the application. Extend this class to create a TracksService implementation.

Parameters

context

The context used by the TracksService.

Inheritors

Constructors

Link copied to clipboard
constructor(context: Context)

Types

Link copied to clipboard
object Companion

Companion object that provides utility methods related to TracksService.

Functions

Link copied to clipboard
abstract fun changeTrackingPayload(appTrackingInfo: AppTrackingInfo)

Change the tracking payload to the given breadcrumb payload.

Link copied to clipboard
abstract fun isTracking(): Boolean

Check if tracking is currently active.

Link copied to clipboard
abstract fun resume(appTrackingInfo: AppTrackingInfo)

Resume tracking with the given tracking payload.

Link copied to clipboard
abstract fun suspend()

Suspend the currently running tracking.