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

Nested types

This class is deprecated. Deprecated in Java

Public functions

Int

This function is deprecated. Deprecated in Java

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

This function is deprecated. Deprecated in Java

@Dimension(unit = 0) Int

This function is deprecated. Deprecated in Java

Int

This function is deprecated. Deprecated in Java

@Dimension(unit = 0) Int

This function is deprecated. Deprecated in Java

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.