Screen Views

Record native Android screen-view events from app-owned route names.

Screen-view events give Ansight explicit navigation breadcrumbs.

Manual Screen Views

AnsightRuntime.screenViewed(
    "Orders",
    mapOf("route" to "/orders")
)

Use stable names and compact details such as route, tab, or presentation.

The Android SDK exposes screenViewed(...) as the supported app-code API. Call it from your navigation observer, route callback, or screen lifecycle hook when the current route changes.

fun onRouteChanged(route: String) {
    AnsightRuntime.screenViewed(route, mapOf("source" to "app-navigation"))
}