-
-
Notifications
You must be signed in to change notification settings - Fork 340
/
Copy pathSentryBreadcrumb.h
66 lines (50 loc) · 1.49 KB
/
SentryBreadcrumb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#import <Foundation/Foundation.h>
#if __has_include(<Sentry/Sentry.h>)
# import <Sentry/SentryDefines.h>
# import <Sentry/SentrySerializable.h>
#else
# import <SentryWithoutUIKit/SentryDefines.h>
# import <SentryWithoutUIKit/SentrySerializable.h>
#endif
NS_ASSUME_NONNULL_BEGIN
NS_SWIFT_NAME(Breadcrumb)
@interface SentryBreadcrumb : NSObject <SentrySerializable>
/**
* Level of breadcrumb
*/
@property (nonatomic) SentryLevel level;
/**
* Category of bookmark, can be any string
*/
@property (nonatomic, copy) NSString *category;
/**
* @c NSDate when the breadcrumb happened
*/
@property (nonatomic, strong, nullable) NSDate *timestamp;
/**
* Type of breadcrumb, can be e.g.: http, empty, user, navigation
* This will be used as icon of the breadcrumb
*/
@property (nonatomic, copy, nullable) NSString *type;
/**
* Message for the breadcrumb
*/
@property (nonatomic, copy, nullable) NSString *message;
/**
* Arbitrary additional data that will be sent with the breadcrumb
*/
@property (nonatomic, strong, nullable) NSDictionary<NSString *, id> *data;
/**
* Initializer for @c SentryBreadcrumb
* @param level SentryLevel
* @param category String
*/
- (instancetype)initWithLevel:(SentryLevel)level category:(NSString *)category;
- (instancetype)init;
+ (instancetype)new NS_UNAVAILABLE;
- (NSDictionary<NSString *, id> *)serialize;
- (BOOL)isEqual:(id _Nullable)other;
- (BOOL)isEqualToBreadcrumb:(SentryBreadcrumb *)breadcrumb;
- (NSUInteger)hash;
@end
NS_ASSUME_NONNULL_END