-
- All Implemented Interfaces:
-
com.bugsnag.android.JsonStream.Streamable
public final class DeviceWithState extends Device
Stateful 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.
-
-
Field Summary
Fields Modifier and Type Field Description private LongfreeDiskprivate LongfreeMemoryprivate Stringorientationprivate Datetimeprivate Stringmanufacturerprivate Stringmodelprivate StringosNameprivate StringosVersionprivate Map<String, Object>runtimeVersionsprivate Array<String>cpuAbiprivate Booleanjailbrokenprivate Stringidprivate Stringlocaleprivate LongtotalMemory
-
Method Summary
Modifier and Type Method Description final LonggetFreeDisk()The number of free bytes of storage available on the device final UnitsetFreeDisk(Long freeDisk)The number of free bytes of storage available on the device final LonggetFreeMemory()The number of free bytes of memory available on the device final UnitsetFreeMemory(Long freeMemory)The number of free bytes of memory available on the device final StringgetOrientation()The orientation of the device when the event occurred: either portrait or landscape final UnitsetOrientation(String orientation)The orientation of the device when the event occurred: either portrait or landscape final DategetTime()The timestamp on the device when the event occurred final UnitsetTime(Date time)The timestamp on the device when the event occurred final StringgetManufacturer()The manufacturer of the device used final UnitsetManufacturer(String manufacturer)The manufacturer of the device used final StringgetModel()The model name of the device used final UnitsetModel(String model)The model name of the device used final StringgetOsName()The name of the operating system running on the device used final UnitsetOsName(String osName)The name of the operating system running on the device used final StringgetOsVersion()The version of the operating system running on the device used final UnitsetOsVersion(String osVersion)The version of the operating system running on the device used final Map<String, Object>getRuntimeVersions()final UnitsetRuntimeVersions(Map<String, Object> runtimeVersions)final Array<String>getCpuAbi()The Application Binary Interface used final UnitsetCpuAbi(Array<String> cpuAbi)The Application Binary Interface used final BooleangetJailbroken()Whether the device has been jailbroken final UnitsetJailbroken(Boolean jailbroken)Whether the device has been jailbroken final StringgetId()A UUID generated by Bugsnag and used for the individual application on a device final UnitsetId(String id)A UUID generated by Bugsnag and used for the individual application on a device final StringgetLocale()The IETF language tag of the locale used final UnitsetLocale(String locale)The IETF language tag of the locale used final LonggetTotalMemory()The total number of bytes of memory on the device final UnitsetTotalMemory(Long totalMemory)The total number of bytes of memory on the device -
-
Method Detail
-
getFreeDisk
final Long getFreeDisk()
The number of free bytes of storage available on the device
-
setFreeDisk
final Unit setFreeDisk(Long freeDisk)
The number of free bytes of storage available on the device
-
getFreeMemory
final Long getFreeMemory()
The number of free bytes of memory available on the device
-
setFreeMemory
final Unit setFreeMemory(Long freeMemory)
The number of free bytes of memory available on the device
-
getOrientation
final String getOrientation()
The orientation of the device when the event occurred: either portrait or landscape
-
setOrientation
final Unit setOrientation(String orientation)
The orientation of the device when the event occurred: either portrait or landscape
-
getManufacturer
final String getManufacturer()
The manufacturer of the device used
-
setManufacturer
final Unit setManufacturer(String manufacturer)
The manufacturer of the device used
-
setOsName
final Unit setOsName(String osName)
The name of the operating system running on the device used
-
getOsVersion
final String getOsVersion()
The version of the operating system running on the device used
-
setOsVersion
final Unit setOsVersion(String osVersion)
The version of the operating system running on the device used
-
getRuntimeVersions
final Map<String, Object> getRuntimeVersions()
-
setRuntimeVersions
final Unit setRuntimeVersions(Map<String, Object> runtimeVersions)
-
getJailbroken
final Boolean getJailbroken()
Whether the device has been jailbroken
-
setJailbroken
final Unit setJailbroken(Boolean jailbroken)
Whether the device has been jailbroken
-
getId
final String getId()
A UUID generated by Bugsnag and used for the individual application on a device
-
setId
final Unit setId(String id)
A UUID generated by Bugsnag and used for the individual application on a device
-
getTotalMemory
final Long getTotalMemory()
The total number of bytes of memory on the device
-
setTotalMemory
final Unit setTotalMemory(Long totalMemory)
The total number of bytes of memory on the device
-
-
-
-