BugsnagDevice

Objective-C


@interface BugsnagDevice : NSObject

Swift

class BugsnagDevice : NSObject

Stateless information set by the notifier about the device on which the event occurred can be found on this class. These values can be accessed and amended if necessary.

  • Whether the device has been jailbroken

    Declaration

    Objective-C

    @property (nonatomic) BOOL jailbroken;

    Swift

    var jailbroken: Bool { get set }
  • id

    A unique ID generated by Bugsnag which identifies the device

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *id;

    Swift

    var id: String? { get set }
  • The IETF language tag of the locale used

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *locale;

    Swift

    var locale: String? { get set }
  • The manufacturer of the device used

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *manufacturer;

    Swift

    var manufacturer: String? { get set }
  • The model ID of the device used, e.g. “iPhone14,1” or “MacBookPro17,1”

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *model;

    Swift

    var model: String? { get set }
  • The model number of the device used, e.g. “N841AP”

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *modelNumber;

    Swift

    var modelNumber: String? { get set }
  • The name of the operating system running on the device used

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *osName;

    Swift

    var osName: String? { get set }
  • The version of the operating system running on the device used

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *osVersion;

    Swift

    var osVersion: String? { get set }
  • A collection of names and their versions of the primary languages, frameworks or runtimes that the application is running on

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSDictionary<NSString *, NSString *> *runtimeVersions;

    Swift

    var runtimeVersions: [String : String]? { get set }
  • The total number of bytes of memory on the device

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) NSNumber *totalMemory;

    Swift

    var totalMemory: NSNumber? { get set }