CommandersActPageView

class CommandersActPageView(val name: String, val type: String, val levels: List<String> = emptyList(), val labels: Map<String, String> = emptyMap())

Represents a page view event for Commanders Act.

This class encapsulates the data required to track a page view event, including the page name, type, navigation levels, and custom labels.

Throws

Constructors

Link copied to clipboard
constructor(name: String, type: String, levels: List<String> = emptyList(), labels: Map<String, String> = emptyMap())

Properties

Link copied to clipboard

A map of custom labels to be associated with the page view event. Blank values are ignored and not sent. Defaults to an empty map.

Link copied to clipboard

A list of strings representing the navigation levels of the page. Defaults to an empty list.

Link copied to clipboard

The name of the page being viewed. This property cannot be blank.

Link copied to clipboard

The type of the page. This property cannot be blank.

Functions

Link copied to clipboard
fun toTCPageViewEvent(vendor: AnalyticsConfig.Vendor): TCPageViewEvent

Converts this event to a TCPageViewEvent.