BugsnagSession
Objective-C
@interface BugsnagSession : NSObject
Swift
class BugsnagSession : NSObject
Represents a session of user interaction with your app.
-
Undocumented
Declaration
Objective-C
@property (copy, nonatomic) NSString *idSwift
var id: String { get set } -
Undocumented
Declaration
Objective-C
@property (strong, nonatomic) NSDate *startedAtSwift
var startedAt: Date { get set } -
Undocumented
Declaration
Objective-C
@property (readonly, nonatomic) BugsnagApp *appSwift
var app: BugsnagApp { get } -
Undocumented
Declaration
Objective-C
@property (readonly, nonatomic) BugsnagDevice *deviceSwift
var device: BugsnagDevice { get } -
The current user
Declaration
Objective-C
@property (nonatomic, readonly, nonnull) BugsnagUser *user;Swift
var user: BugsnagUser { get } -
Set user metadata
Declaration
Objective-C
- (void)setUser:(nullable NSString *)userId withEmail:(nullable NSString *)email andName:(nullable NSString *)name;Swift
func setUser(_ userId: String?, withEmail email: String?, andName name: String?)Parameters
userIdID of the user
nameName of the user
emailEmail address of the user
View on GitHub
Install in Dash
BugsnagSession Class Reference