Package io.sentry.protocol
Class Device
java.lang.Object
io.sentry.protocol.Device
- All Implemented Interfaces:
JsonSerializable,JsonUnknown
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic enumstatic final class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable String[]getArchs()@Nullable Float@Nullable Float@Nullable Date@Nullable StringgetBrand()@Nullable String@Nullable Long@Nullable Long@Nullable String@Nullable Long@Nullable Long@Nullable StringgetId()@Nullable String@Nullable String@Nullable String@Nullable Long@Nullable StringgetModel()@Nullable String@Nullable StringgetName()@Nullable Device.DeviceOrientation@Nullable Float@Nullable Integer@Nullable Integer@Nullable Integer@Nullable Long@Nullable TimeZone@Nullable Long@Nullable Boolean@Nullable Boolean@Nullable BooleanisOnline()@Nullable Booleanvoidserialize(@NotNull JsonObjectWriter writer, @NotNull ILogger logger) voidvoidsetBatteryLevel(@Nullable Float batteryLevel) voidsetBatteryTemperature(@Nullable Float batteryTemperature) voidsetBootTime(@Nullable Date bootTime) voidvoidsetCharging(@Nullable Boolean charging) voidsetConnectionType(@Nullable String connectionType) voidsetExternalFreeStorage(@Nullable Long externalFreeStorage) voidsetExternalStorageSize(@Nullable Long externalStorageSize) voidvoidsetFreeMemory(@Nullable Long freeMemory) voidsetFreeStorage(@Nullable Long freeStorage) voidvoidsetLanguage(@Nullable String language) voidvoidsetLowMemory(@Nullable Boolean lowMemory) voidsetManufacturer(@Nullable String manufacturer) voidsetMemorySize(@Nullable Long memorySize) voidvoidsetModelId(@Nullable String modelId) voidvoidvoidsetOrientation(@Nullable Device.DeviceOrientation orientation) voidsetScreenDensity(@Nullable Float screenDensity) voidsetScreenDpi(@Nullable Integer screenDpi) voidsetScreenHeightPixels(@Nullable Integer screenHeightPixels) voidsetScreenWidthPixels(@Nullable Integer screenWidthPixels) voidsetSimulator(@Nullable Boolean simulator) voidsetStorageSize(@Nullable Long storageSize) voidsetTimezone(@Nullable TimeZone timezone) voidsetUnknown(@Nullable Map<String, Object> unknown) voidsetUsableMemory(@Nullable Long usableMemory)
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
Device
public Device()
-
-
Method Details
-
getName
-
setName
-
getManufacturer
-
setManufacturer
-
getBrand
-
setBrand
-
getFamily
-
setFamily
-
getModel
-
setModel
-
getModelId
-
setModelId
-
getBatteryLevel
-
setBatteryLevel
-
isCharging
-
setCharging
-
isOnline
-
setOnline
-
getOrientation
-
setOrientation
-
isSimulator
-
setSimulator
-
getMemorySize
-
setMemorySize
-
getFreeMemory
-
setFreeMemory
-
getUsableMemory
-
setUsableMemory
-
isLowMemory
-
setLowMemory
-
getStorageSize
-
setStorageSize
-
getFreeStorage
-
setFreeStorage
-
getExternalStorageSize
-
setExternalStorageSize
-
getExternalFreeStorage
-
setExternalFreeStorage
-
getScreenDensity
-
setScreenDensity
-
getScreenDpi
-
setScreenDpi
-
getBootTime
-
setBootTime
-
getTimezone
-
setTimezone
-
getArchs
-
setArchs
-
getScreenWidthPixels
-
setScreenWidthPixels
-
getScreenHeightPixels
-
setScreenHeightPixels
-
getId
-
setId
-
getLanguage
-
setLanguage
-
getConnectionType
-
setConnectionType
-
getBatteryTemperature
-
setBatteryTemperature
-
serialize
public void serialize(@NotNull @NotNull JsonObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException - Specified by:
serializein interfaceJsonSerializable- Throws:
IOException
-
getLocale
-
setLocale
-
getUnknown
- Specified by:
getUnknownin interfaceJsonUnknown
-
setUnknown
- Specified by:
setUnknownin interfaceJsonUnknown
-