BugsnagAppWithState
Objective-C
@interface BugsnagAppWithState : BugsnagApp
Swift
class BugsnagAppWithState : BugsnagApp
Stateful information set by the notifier about your app can be found on this class. These values can be accessed and amended if necessary.
-
The number of milliseconds the application was running before the event occurred
Declaration
Objective-C
@property (nonatomic, strong, nullable) NSNumber *duration;
Swift
var duration: NSNumber? { get set }
-
The number of milliseconds the application was running in the foreground before the event occurred
Declaration
Objective-C
@property (nonatomic, strong, nullable) NSNumber *durationInForeground;
Swift
var durationInForeground: NSNumber? { get set }
-
Whether the application was in the foreground when the event occurred
Declaration
Objective-C
@property (nonatomic) BOOL inForeground;
Swift
var inForeground: Bool { get set }
-
Whether the app was still launching when the event occurred.
Declaration
Objective-C
@property (nonatomic) BOOL isLaunching;
Swift
var isLaunching: Bool { get set }