Package io.sentry.protocol
Class Device
java.lang.Object
io.sentry.protocol.Device
- All Implemented Interfaces:
JsonSerializable
,JsonUnknown
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static enum
static final class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
@Nullable String[]
getArchs()
@Nullable Float
@Nullable Float
@Nullable Date
@Nullable String
getBrand()
@Nullable String
@Nullable String
@Nullable Long
@Nullable Long
@Nullable String
@Nullable Long
@Nullable Long
@Nullable String
getId()
@Nullable String
@Nullable String
@Nullable String
@Nullable Long
@Nullable String
getModel()
@Nullable String
@Nullable String
getName()
@Nullable Device.DeviceOrientation
@Nullable Integer
@Nullable Double
@Nullable Float
@Nullable Integer
@Nullable Integer
@Nullable Integer
@Nullable Long
@Nullable TimeZone
@Nullable Long
int
hashCode()
@Nullable Boolean
@Nullable Boolean
@Nullable Boolean
isOnline()
@Nullable Boolean
void
serialize
(@NotNull ObjectWriter writer, @NotNull ILogger logger) void
void
setBatteryLevel
(@Nullable Float batteryLevel) void
setBatteryTemperature
(@Nullable Float batteryTemperature) void
setBootTime
(@Nullable Date bootTime) void
void
setCharging
(@Nullable Boolean charging) void
setConnectionType
(@Nullable String connectionType) void
setCpuDescription
(@Nullable String cpuDescription) void
setExternalFreeStorage
(@Nullable Long externalFreeStorage) void
setExternalStorageSize
(@Nullable Long externalStorageSize) void
void
setFreeMemory
(@Nullable Long freeMemory) void
setFreeStorage
(@Nullable Long freeStorage) void
void
setLanguage
(@Nullable String language) void
void
setLowMemory
(@Nullable Boolean lowMemory) void
setManufacturer
(@Nullable String manufacturer) void
setMemorySize
(@Nullable Long memorySize) void
void
setModelId
(@Nullable String modelId) void
void
void
setOrientation
(@Nullable Device.DeviceOrientation orientation) void
setProcessorCount
(@Nullable Integer processorCount) void
setProcessorFrequency
(@Nullable Double processorFrequency) void
setScreenDensity
(@Nullable Float screenDensity) void
setScreenDpi
(@Nullable Integer screenDpi) void
setScreenHeightPixels
(@Nullable Integer screenHeightPixels) void
setScreenWidthPixels
(@Nullable Integer screenWidthPixels) void
setSimulator
(@Nullable Boolean simulator) void
setStorageSize
(@Nullable Long storageSize) void
setTimezone
(@Nullable TimeZone timezone) void
setUnknown
(@Nullable Map<String, Object> unknown) void
setUsableMemory
(@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
-
getProcessorCount
-
setProcessorCount
-
getProcessorFrequency
-
setProcessorFrequency
-
getCpuDescription
-
setCpuDescription
-
equals
-
hashCode
public int hashCode() -
serialize
public void serialize(@NotNull @NotNull ObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException - Specified by:
serialize
in interfaceJsonSerializable
- Throws:
IOException
-
getLocale
-
setLocale
-
getUnknown
- Specified by:
getUnknown
in interfaceJsonUnknown
-
setUnknown
- Specified by:
setUnknown
in interfaceJsonUnknown
-