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 *id
Swift
var id: String { get set }
-
Undocumented
Declaration
Objective-C
@property (strong, nonatomic) NSDate *startedAt
Swift
var startedAt: Date { get set }
-
Undocumented
Declaration
Objective-C
@property (readonly, nonatomic) BugsnagApp *app
Swift
var app: BugsnagApp { get }
-
Undocumented
Declaration
Objective-C
@property (readonly, nonatomic) BugsnagDevice *device
Swift
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
userId
ID of the user
name
Name of the user
email
Email address of the user