zworld-em/Plugins/sentry-unreal/Source/ThirdParty/Mac/include/Sentry/SentryMessage.h

47 lines
1.5 KiB
C
Raw Normal View History

2025-05-11 22:07:21 +08:00
#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
/**
* Carries a log message that describes an event or error. Optionally, it can carry a format string
* and structured parameters. This can help to group similar messages into the same issue.
* @see https://develop.sentry.dev/sdk/event-payloads/message/
*/
@interface SentryMessage : NSObject <SentrySerializable>
SENTRY_NO_INIT
/**
* Returns a @c SentryMessage with setting formatted.
* @param formatted The fully formatted message. If missing, Sentry will try to interpolate the
* message. It must not exceed 8192 characters. Longer messages will be truncated.
*/
- (instancetype)initWithFormatted:(NSString *)formatted;
/**
* The fully formatted message. If missing, Sentry will try to interpolate the message. It must not
* exceed 8192 characters. Longer messages will be truncated.
*/
@property (nonatomic, readonly, copy) NSString *formatted;
/**
* The raw message string (uninterpolated). It must not exceed 8192 characters. Longer messages will
* be truncated.
*/
@property (nonatomic, copy) NSString *_Nullable message;
/**
* A list of formatting parameters for the raw message.
*/
@property (nonatomic, strong) NSArray<NSString *> *_Nullable params;
@end
NS_ASSUME_NONNULL_END