ContextData

@Serializable
class ContextData(screenName: String = NO_VALUE, contextMap: MutableMap<String, Any?> = mutableMapOf())

Serializable class that manages contextual data for analytics tracking.

ContextData stores information about the current screen and additional contextual details like navigation breadcrumbs that can be used for analytics purposes.

Constructors

Link copied to clipboard
constructor(screenName: String = NO_VALUE, contextMap: MutableMap<String, Any?> = mutableMapOf())

Functions

Link copied to clipboard
fun getMap(): Map<String, Any?>

Returns an immutable copy of the context map.

Link copied to clipboard
fun setBreadcrumbs(breadCrumbs: BreadCrumbs)

Sets breadcrumb navigation information in the context map.