DeviceParametersBuilders.DeviceParameters

Added in 1.0.0
Deprecated in 1.2.0

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

Public functions

Int

Gets the platform of the device.

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

Gets density of the display.

@Dimension(unit = 0) Int

Gets height of the device's screen in DP.

Int

Gets the shape of the device's screen.

@Dimension(unit = 0) Int

Gets width of the device's screen in DP.

Public functions

getDevicePlatform

Added in 1.0.0
Deprecated in 1.2.0
fun getDevicePlatform(): Int

Gets the platform of the device.

getScreenDensity

Added in 1.0.0
Deprecated in 1.2.0
fun getScreenDensity(): @FloatRange(from = 0.0, fromInclusive = false, toInclusive = false) Float

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
fun getScreenHeightDp(): @Dimension(unit = 0) Int

Gets height of the device's screen in DP.

getScreenShape

Added in 1.0.0
Deprecated in 1.2.0
fun getScreenShape(): Int

Gets the shape of the device's screen.

getScreenWidthDp

Added in 1.0.0
Deprecated in 1.2.0
fun getScreenWidthDp(): @Dimension(unit = 0) Int

Gets width of the device's screen in DP.