Class Device

java.lang.Object
io.sentry.protocol.Device
All Implemented Interfaces:
JsonSerializable, JsonUnknown

public final class Device extends Object implements JsonUnknown, JsonSerializable
  • Field Details

  • Constructor Details

    • Device

      public Device()
  • Method Details

    • getName

      @Nullable public @Nullable String getName()
    • setName

      public void setName(@Nullable @Nullable String name)
    • getManufacturer

      @Nullable public @Nullable String getManufacturer()
    • setManufacturer

      public void setManufacturer(@Nullable @Nullable String manufacturer)
    • getBrand

      @Nullable public @Nullable String getBrand()
    • setBrand

      public void setBrand(@Nullable @Nullable String brand)
    • getFamily

      @Nullable public @Nullable String getFamily()
    • setFamily

      public void setFamily(@Nullable @Nullable String family)
    • getModel

      @Nullable public @Nullable String getModel()
    • setModel

      public void setModel(@Nullable @Nullable String model)
    • getModelId

      @Nullable public @Nullable String getModelId()
    • setModelId

      public void setModelId(@Nullable @Nullable String modelId)
    • getBatteryLevel

      @Nullable public @Nullable Float getBatteryLevel()
    • setBatteryLevel

      public void setBatteryLevel(@Nullable @Nullable Float batteryLevel)
    • isCharging

      @Nullable public @Nullable Boolean isCharging()
    • setCharging

      public void setCharging(@Nullable @Nullable Boolean charging)
    • isOnline

      @Nullable public @Nullable Boolean isOnline()
    • setOnline

      public void setOnline(@Nullable @Nullable Boolean online)
    • getOrientation

      @Nullable public @Nullable Device.DeviceOrientation getOrientation()
    • setOrientation

      public void setOrientation(@Nullable @Nullable Device.DeviceOrientation orientation)
    • isSimulator

      @Nullable public @Nullable Boolean isSimulator()
    • setSimulator

      public void setSimulator(@Nullable @Nullable Boolean simulator)
    • getMemorySize

      @Nullable public @Nullable Long getMemorySize()
    • setMemorySize

      public void setMemorySize(@Nullable @Nullable Long memorySize)
    • getFreeMemory

      @Nullable public @Nullable Long getFreeMemory()
    • setFreeMemory

      public void setFreeMemory(@Nullable @Nullable Long freeMemory)
    • getUsableMemory

      @Nullable public @Nullable Long getUsableMemory()
    • setUsableMemory

      public void setUsableMemory(@Nullable @Nullable Long usableMemory)
    • isLowMemory

      @Nullable public @Nullable Boolean isLowMemory()
    • setLowMemory

      public void setLowMemory(@Nullable @Nullable Boolean lowMemory)
    • getStorageSize

      @Nullable public @Nullable Long getStorageSize()
    • setStorageSize

      public void setStorageSize(@Nullable @Nullable Long storageSize)
    • getFreeStorage

      @Nullable public @Nullable Long getFreeStorage()
    • setFreeStorage

      public void setFreeStorage(@Nullable @Nullable Long freeStorage)
    • getExternalStorageSize

      @Nullable public @Nullable Long getExternalStorageSize()
    • setExternalStorageSize

      public void setExternalStorageSize(@Nullable @Nullable Long externalStorageSize)
    • getExternalFreeStorage

      @Nullable public @Nullable Long getExternalFreeStorage()
    • setExternalFreeStorage

      public void setExternalFreeStorage(@Nullable @Nullable Long externalFreeStorage)
    • getScreenDensity

      @Nullable public @Nullable Float getScreenDensity()
    • setScreenDensity

      public void setScreenDensity(@Nullable @Nullable Float screenDensity)
    • getScreenDpi

      @Nullable public @Nullable Integer getScreenDpi()
    • setScreenDpi

      public void setScreenDpi(@Nullable @Nullable Integer screenDpi)
    • getBootTime

      @Nullable public @Nullable Date getBootTime()
    • setBootTime

      public void setBootTime(@Nullable @Nullable Date bootTime)
    • getTimezone

      @Nullable public @Nullable TimeZone getTimezone()
    • setTimezone

      public void setTimezone(@Nullable @Nullable TimeZone timezone)
    • getArchs

      @Nullable public @Nullable String[] getArchs()
    • setArchs

      public void setArchs(@Nullable @Nullable String[] archs)
    • getScreenWidthPixels

      @Nullable public @Nullable Integer getScreenWidthPixels()
    • setScreenWidthPixels

      public void setScreenWidthPixels(@Nullable @Nullable Integer screenWidthPixels)
    • getScreenHeightPixels

      @Nullable public @Nullable Integer getScreenHeightPixels()
    • setScreenHeightPixels

      public void setScreenHeightPixels(@Nullable @Nullable Integer screenHeightPixels)
    • getId

      @Nullable public @Nullable String getId()
    • setId

      public void setId(@Nullable @Nullable String id)
    • getLanguage

      @Nullable public @Nullable String getLanguage()
    • setLanguage

      public void setLanguage(@Nullable @Nullable String language)
    • getConnectionType

      @Nullable public @Nullable String getConnectionType()
    • setConnectionType

      public void setConnectionType(@Nullable @Nullable String connectionType)
    • getBatteryTemperature

      @Nullable public @Nullable Float getBatteryTemperature()
    • setBatteryTemperature

      public void setBatteryTemperature(@Nullable @Nullable Float batteryTemperature)
    • getProcessorCount

      @Nullable public @Nullable Integer getProcessorCount()
    • setProcessorCount

      public void setProcessorCount(@Nullable @Nullable Integer processorCount)
    • getProcessorFrequency

      @Nullable public @Nullable Double getProcessorFrequency()
    • setProcessorFrequency

      public void setProcessorFrequency(@Nullable @Nullable Double processorFrequency)
    • getCpuDescription

      @Nullable public @Nullable String getCpuDescription()
    • setCpuDescription

      public void setCpuDescription(@Nullable @Nullable String cpuDescription)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • serialize

      public void serialize(@NotNull @NotNull ObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException
      Specified by:
      serialize in interface JsonSerializable
      Throws:
      IOException
    • getLocale

      @Nullable public @Nullable String getLocale()
    • setLocale

      public void setLocale(@Nullable @Nullable String locale)
    • getUnknown

      @Nullable public @Nullable Map<String,Object> getUnknown()
      Specified by:
      getUnknown in interface JsonUnknown
    • setUnknown

      public void setUnknown(@Nullable @Nullable Map<String,Object> unknown)
      Specified by:
      setUnknown in interface JsonUnknown