Type Definitions
The following type definitions are available globally.
-
Encapsulates report writing functionality.
See moreDeclaration
Objective-C
typedef struct BSG_KSCrashReportWriter BSG_KSCrashReportWriter
-
Undocumented
Declaration
Objective-C
typedef void (*BSG_KSReportWriteCallback)( const BSG_KSCrashReportWriter *writer)
Swift
typealias BSG_KSReportWriteCallback = (UnsafePointer<BSG_KSCrashReportWriter>?) -> Void
-
A configuration block for modifying an error report
Declaration
Objective-C
typedef BOOL (^BugsnagOnErrorBlock)(BugsnagEvent *_Nonnull)
Swift
typealias BugsnagOnErrorBlock = (BugsnagEvent) -> Bool
Parameters
event
the error report to be modified
-
A handler for modifying data before sending it to Bugsnag.
onSendErrorBlocks will be invoked on a dedicated background queue, which will be different from the queue where the block was originally added.
Declaration
Objective-C
typedef BOOL (^BugsnagOnSendErrorBlock)(BugsnagEvent *_Nonnull)
Swift
typealias BugsnagOnSendErrorBlock = (BugsnagEvent) -> Bool
Parameters
event
The event report.
Return Value
YES if the event should be sent
-
An opaque object that identifies and allows the removal of a BugsnagOnSendErrorBlock.
Declaration
Objective-C
typedef id<NSObject> BugsnagOnSendErrorRef
Swift
typealias BugsnagOnSendErrorRef = NSObjectProtocol
-
A configuration block for modifying a captured breadcrumb
Declaration
Objective-C
typedef BOOL (^BugsnagOnBreadcrumbBlock)(BugsnagBreadcrumb *_Nonnull)
Swift
typealias BugsnagOnBreadcrumbBlock = (BugsnagBreadcrumb) -> Bool
Parameters
breadcrumb
The breadcrumb
-
An opaque object that identifies and allows the removal of a BugsnagOnBreadcrumbBlock.
Declaration
Objective-C
typedef id<NSObject> BugsnagOnBreadcrumbRef
Swift
typealias BugsnagOnBreadcrumbRef = NSObjectProtocol
-
A configuration block for modifying a session. Intended for internal usage only.
Declaration
Objective-C
typedef BOOL (^BugsnagOnSessionBlock)(BugsnagSession *_Nonnull)
Swift
typealias BugsnagOnSessionBlock = (BugsnagSession) -> Bool
Parameters
session
The session about to be delivered
-
An opaque object that identifies and allows the removal of a BugsnagOnSessionBlock.
Declaration
Objective-C
typedef id<NSObject> BugsnagOnSessionRef
Swift
typealias BugsnagOnSessionRef = NSObjectProtocol
-
Undocumented
Declaration
Objective-C
typedef NSString * BugsnagStackframeType
Swift
struct BugsnagStackframeType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable