DeviceParametersBuilders.DeviceParameters

Added in 1.0.0
Deprecated in 1.2.0

public final class DeviceParametersBuilders.DeviceParameters


Parameters describing the device requesting a tile update. This contains physical and logical characteristics about the device (e.g. screen size and density, etc).

Summary

Nested types

This class is deprecated. Deprecated in Java

Public methods

int

This method is deprecated. Deprecated in Java

@FloatRange(from = 0.0, fromInclusive = false, toInclusive = false) float

This method is deprecated. Deprecated in Java

@Dimension(unit = 0) int

This method is deprecated. Deprecated in Java

int

This method is deprecated. Deprecated in Java

@Dimension(unit = 0) int

This method is deprecated. Deprecated in Java

Public methods

getDevicePlatform

Added in 1.0.0
Deprecated in 1.2.0
public int getDevicePlatform()

Gets the platform of the device.

getScreenDensity

Added in 1.0.0
Deprecated in 1.2.0
public @FloatRange(from = 0.0, fromInclusive = false, toInclusive = false) float getScreenDensity()

Gets density of the display. This value is the scaling factor to get from DP to Pixels (px = dp * density).

getScreenHeightDp

Added in 1.0.0
Deprecated in 1.2.0
public @Dimension(unit = 0) int getScreenHeightDp()

Gets height of the device's screen in DP.

getScreenShape

Added in 1.0.0
Deprecated in 1.2.0
public int getScreenShape()

Gets the shape of the device's screen.

getScreenWidthDp

Added in 1.0.0
Deprecated in 1.2.0
public @Dimension(unit = 0) int getScreenWidthDp()

Gets width of the device's screen in DP.