-
- All Implemented Interfaces:
-
androidx.navigation.NavController.OnDestinationChangedListener
public final class SentryNavigationListener implements NavController.OnDestinationChangedListener
A NavController.OnDestinationChangedListener that captures a Breadcrumb and starts an ITransaction and sends them to Sentry for each onDestinationChanged call.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSentryNavigationListener.Companion
-
Constructor Summary
Constructors Constructor Description SentryNavigationListener(IScopes scopes, Boolean enableNavigationBreadcrumbs, Boolean enableNavigationTracing, String traceOriginAppendix)SentryNavigationListener(IScopes scopes, Boolean enableNavigationBreadcrumbs, Boolean enableNavigationTracing)SentryNavigationListener(IScopes scopes, Boolean enableNavigationBreadcrumbs)SentryNavigationListener(IScopes scopes)SentryNavigationListener()
-
Method Summary
Modifier and Type Method Description UnitonDestinationChanged(NavController controller, NavDestination destination, Bundle arguments)-
-
Constructor Detail
-
SentryNavigationListener
SentryNavigationListener(IScopes scopes, Boolean enableNavigationBreadcrumbs, Boolean enableNavigationTracing, String traceOriginAppendix)
- Parameters:
enableNavigationBreadcrumbs- Whether the integration should capture breadcrumbs for navigation events.enableNavigationTracing- Whether the integration should start a new idle ITransaction with SentryOptions.idleTimeout for navigation events.
-
SentryNavigationListener
SentryNavigationListener(IScopes scopes, Boolean enableNavigationBreadcrumbs, Boolean enableNavigationTracing)
- Parameters:
enableNavigationBreadcrumbs- Whether the integration should capture breadcrumbs for navigation events.enableNavigationTracing- Whether the integration should start a new idle ITransaction with SentryOptions.idleTimeout for navigation events.
-
SentryNavigationListener
SentryNavigationListener(IScopes scopes, Boolean enableNavigationBreadcrumbs)
- Parameters:
enableNavigationBreadcrumbs- Whether the integration should capture breadcrumbs for navigation events.
-
SentryNavigationListener
SentryNavigationListener(IScopes scopes)
-
SentryNavigationListener
SentryNavigationListener()
-
-
Method Detail
-
onDestinationChanged
Unit onDestinationChanged(NavController controller, NavDestination destination, Bundle arguments)
-
-
-
-