Package io.sentry.compose
Class SentryNavigationIntegrationKt
-
- All Implemented Interfaces:
public final class SentryNavigationIntegrationKt
-
-
Method Summary
Modifier and Type Method Description final static NavHostControllerwithSentryObservableEffect(NavHostController $self, SentryNavigationListener navListener)A DisposableEffect that captures a Breadcrumb and starts an ITransaction and sends them to Sentry for every navigation event when being attached to the respective NavHostController. final static NavHostControllerwithSentryObservableEffect(NavHostController $self, Boolean enableNavigationBreadcrumbs, Boolean enableNavigationTracing)A DisposableEffect that captures a Breadcrumb and starts an ITransaction and sends them to Sentry for every navigation event when being attached to the respective NavHostController. -
-
Method Detail
-
withSentryObservableEffect
@Composable() final static NavHostController withSentryObservableEffect(NavHostController $self, SentryNavigationListener navListener)
A DisposableEffect that captures a Breadcrumb and starts an ITransaction and sends them to Sentry for every navigation event when being attached to the respective NavHostController.
- Parameters:
navListener- An instance of a SentryNavigationListener that is shared with other sentry integrations, like the fragment navigation integration.
-
withSentryObservableEffect
@Composable() final static NavHostController withSentryObservableEffect(NavHostController $self, Boolean enableNavigationBreadcrumbs, Boolean enableNavigationTracing)
A DisposableEffect that captures a Breadcrumb and starts an ITransaction and sends them to Sentry for every navigation event when being attached to the respective NavHostController. This version of withSentryObservableEffect should be used if you are working purely with Compose.
- Parameters:
enableNavigationBreadcrumbs- Whether the integration should capture breadcrumbs for navigation events.enableNavigationTracing- Whether the integration should start a new ITransaction with SentryOptions.idleTimeout for navigation events.
-
-
-
-