screenViewed

fun screenViewed(screenName: String, attributes: Map<String, Any>? = null, searchQuery: String? = null, traits: TrackingTraits? = null)

Reports that the user viewed a screen.

Parameters

screenName

The name of the screen.

attributes

Optional custom attributes to send with the event.

searchQuery

Optional search query associated with the screen.

traits

Optional identity traits to send with this event only.