LzTracker
class LzTrackerAnalytics tracking service for the Lazarillo SDK, backed by the Countly SDK.
Manages event recording, view timing, user property updates, and crash reporting. Follows the singleton pattern via sharedInstance in the companion object.
Must be initialized with initialize before any tracking calls are made; all public methods are no-ops until initialization completes. The API key is attached to every tracked event for attribution purposes.
See also
| LzSdkManager | for initialization context and lifecycle management. |
Constructors
LzTracker | constructor() |
Types
| Name | Summary |
|---|---|
Companion | object Companion |
Functions
endRecordView
fun endRecordView(viewName: String)initialize
fun initialize(application: Application)onDestroy
fun onDestroy()onStart
fun onStart(activity: Activity)onStop
fun onStop()recordEvent
fun recordEvent(eventName: String, params: Map<String, Any?>)recordException
fun recordException(e: Exception)recordThrowable
fun recordThrowable(t: Throwable)setApiKey
fun setApiKey(apiKey: String?)startRecordView
fun startRecordView(viewName: String, params: Map<String, Any?>?)Last updated on