Skip to content

Commit

Permalink
class docs
Browse files Browse the repository at this point in the history
  • Loading branch information
marandaneto committed Nov 23, 2022
1 parent d004b7d commit 4328c3f
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,26 @@ import 'user_interaction_widget.dart';
const _tapDeltaArea = 20 * 20;
Element? _clickTrackerElement;

/// Enables the Auto instrumentation for user interaction tracing.
/// It starts a transaction and finishes after the timeout.
/// It adds a breadcrumb as well.
///
/// It's supported by the most common [Widget], for example:
/// [ButtonStyleButton], [MaterialButton], [CupertinoButton], [InkWell],
/// [IconButton] and [GestureDetector].
/// Mostly for onPressed, onTap, and onLongPress events
///
/// Example on how to set up:
/// runApp(SentryUserInteractionWidget(child: App()));
///
/// For transactions, enable it in the [SentryFlutterOptions.enableUserInteractionTracing].
/// The idle timeout can be configured in the [SentryOptions.idleTimeout].
///
/// For breadcrumbs, disable it in the [SentryFlutterOptions.enableUserInteractionBreadcrumbs].
///
/// If you are using the [SentryScreenshotWidget] as well, make sure to add
/// [SentryUserInteractionWidget] as a child of [SentryScreenshotWidget].
@experimental
class SentryUserInteractionWidget extends StatefulWidget {
SentryUserInteractionWidget({
Key? key,
Expand Down

0 comments on commit 4328c3f

Please sign in to comment.