-
-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
296 additions
and
344 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import 'dart:async'; | ||
|
||
import 'package:meta/meta.dart'; | ||
|
||
import '../../sentry_flutter.dart'; | ||
import 'sentry_native.dart'; | ||
|
||
/// Provide typed methods to access native layer. | ||
@internal | ||
abstract class SentryNativeBinding { | ||
// TODO Move other native calls here. | ||
|
||
Future<NativeAppStart?> fetchNativeAppStart(); | ||
|
||
Future<void> beginNativeFrames(); | ||
|
||
Future<NativeFrames?> endNativeFrames(SentryId id); | ||
|
||
Future<void> setUser(SentryUser? user); | ||
|
||
Future<void> addBreadcrumb(Breadcrumb breadcrumb); | ||
|
||
Future<void> clearBreadcrumbs(); | ||
|
||
Future<void> setContexts(String key, dynamic value); | ||
|
||
Future<void> removeContexts(String key); | ||
|
||
Future<void> setExtra(String key, dynamic value); | ||
|
||
Future<void> removeExtra(String key); | ||
|
||
Future<void> setTag(String key, String value); | ||
|
||
Future<void> removeTag(String key); | ||
|
||
int? startProfiler(SentryId traceId); | ||
|
||
Future<void> discardProfiler(SentryId traceId); | ||
|
||
Future<Map<String, dynamic>?> collectProfile( | ||
SentryId traceId, int startTimeNs, int endTimeNs); | ||
} |
Oops, something went wrong.