SentryDevice class

This describes the device that caused the event.

Annotations
  • @immutable

Constructors

SentryDevice({String? name, String? family, String? model, String? modelId, String? arch, double? batteryLevel, SentryOrientation? orientation, String? manufacturer, String? brand, String? screenResolution, int? screenHeightPixels, int? screenWidthPixels, double? screenDensity, int? screenDpi, bool? online, bool? charging, bool? lowMemory, bool? simulator, int? memorySize, int? freeMemory, int? usableMemory, int? storageSize, int? freeStorage, int? externalStorageSize, int? externalFreeStorage, DateTime? bootTime, String? timezone, String? language})
const
SentryDevice.fromJson(Map<String, dynamic> data)
factory

Properties

arch String?
The CPU architecture.
final
batteryLevel double?
If the device has a battery, this can be an floating point value defining the battery level (in the range 0-100).
final
bootTime DateTime?
When the system was booted
final
brand String?
The brand of the device.
final
charging bool?
Whether the device was charging or not.
final
externalFreeStorage int?
Free size of an attached external storage in bytes (e.g.: android SDK card).
final
externalStorageSize int?
Total size of an attached external storage in bytes (e.g.: android SDK card).
final
family String?
The family of the device.
final
freeMemory int?
Free system memory in bytes.
final
freeStorage int?
Free device storage in bytes.
final
hashCode int
The hash code for this object.
no setterinherited
language String?
The language of the device, e.g.: en_US.
final
lowMemory bool?
Whether the device was low on memory.
final
manufacturer String?
The manufacturer of the device.
final
memorySize int?
Total system memory available in bytes.
final
model String?
The model name. This for instance can be Samsung Galaxy S3.
final
modelId String?
An internal hardware revision to identify the device exactly.
final
name String?
The name of the device. This is typically a hostname.
final
online bool?
Whether the device was online or not.
final
orientation SentryOrientation?
Defines the orientation of a device.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenDensity double?
A floating point denoting the screen density.
final
screenDpi int?
A decimal value reflecting the DPI (dots-per-inch) density.
final
screenHeightPixels int?
The screen height in pixels. (e.g.: 600, 1080).
final
screenResolution String?
The screen resolution. (e.g.: 800x600, 3040x1444).
final
screenWidthPixels int?
The screen width in pixels. (e.g.: 800, 1920).
final
simulator bool?
A flag indicating whether this device is a simulator or an actual device.
final
storageSize int?
Total device storage in bytes.
final
timezone String?
The timezone of the device, e.g.: Europe/Vienna.
final
usableMemory int?
Memory usable for the app in bytes.
final

Methods

clone() SentryDevice
copyWith({String? name, String? family, String? model, String? modelId, String? arch, double? batteryLevel, SentryOrientation? orientation, String? manufacturer, String? brand, String? screenResolution, int? screenHeightPixels, int? screenWidthPixels, double? screenDensity, int? screenDpi, bool? online, bool? charging, bool? lowMemory, bool? simulator, int? memorySize, int? freeMemory, int? usableMemory, int? storageSize, int? freeStorage, int? externalStorageSize, int? externalFreeStorage, DateTime? bootTime, String? timezone, String? language}) SentryDevice
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Produces a Map that can be serialized to JSON.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

type → const String