-
- All Implemented Interfaces:
-
com.bugsnag.android.JsonStream.Streamable
public class Device implements JsonStream.Streamable
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.
-
-
Field Summary
Fields Modifier and Type Field Description private Stringmanufacturerprivate Stringmodelprivate StringosNameprivate StringosVersionprivate Map<String, Object>runtimeVersionsprivate Array<String>cpuAbiprivate Booleanjailbrokenprivate Stringidprivate Stringlocaleprivate LongtotalMemory
-
Method Summary
Modifier and Type Method Description 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 UnittoStream(JsonStream writer)-
-
Method Detail
-
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
-
toStream
Unit toStream(JsonStream writer)
-
-
-
-