Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add docs
  • Loading branch information
buenaflor committed Jun 25, 2024
commit c4d84cbf9e8d98ec3de3d414311fb5b3c39bc921
4 changes: 4 additions & 0 deletions flutter/lib/src/sentry_flutter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ mixin SentryFlutter {
return SentryNavigatorObserver.timeToDisplayTracker?.reportFullyDisplayed();
}

/// Pauses the app hang tracking.
/// Only for iOS and macOS.
static Future<void> pauseAppHangTracking() {
if (_native == null) {
// ignore: invalid_use_of_internal_member
Expand All @@ -248,6 +250,8 @@ mixin SentryFlutter {
return native!.pauseAppHangTracking();
}

/// Resumes the app hang tracking.
/// Only for iOS and macOS
static Future<void> resumeAppHangTracking() {
if (_native == null) {
// ignore: invalid_use_of_internal_member
Expand Down