TrackingStateObserver

open class TrackingStateObserver

Main class that reports events when state changed or errors occur in the SDK.

Constructors

Link copied to clipboard
open fun TrackingStateObserver(    context: Context,     coreSDKState: SdkServiceState,     accountRepository: AccountRepository)

Types

Link copied to clipboard
interface OnTrackingStateChangeListener
Used for receiving notifications when tracking state has changed.

Functions

Link copied to clipboard
@Subscribe(threadMode = ThreadMode.MAIN)
open fun onError(event: TrackingErrorEvent)
Link copied to clipboard
@Subscribe(threadMode = ThreadMode.MAIN)
open fun onStart(event: TrackingStartEvent)
Link copied to clipboard
@Subscribe(threadMode = ThreadMode.MAIN)
open fun onStop(event: TrackingStopEvent)

Properties

Link copied to clipboard
val ACTION_TRACKING_ERROR: String
Broadcast intent action when errors occur in the SDK.
Link copied to clipboard
val ACTION_TRACKING_STATE: String
Broadcast intent action when state changed or errors occur in the SDK.
Link copied to clipboard
val EXTRA_EVENT_CODE_START: Int
Broadcast intent code when tracking has started.
Link copied to clipboard
val EXTRA_EVENT_CODE_STOP: Int
Broadcast intent code when tracking has stopped.
Link copied to clipboard
val EXTRA_KEY_CODE_: String
Broadcast intent extra data name for tracking event code.
Link copied to clipboard
val EXTRA_KEY_DEVICE_ID_: String
Broadcast intent extra data name for tracking event device id.
Link copied to clipboard
val EXTRA_KEY_MESSAGE_: String
Broadcast intent extra data name for tracking event message.