public final class

DeviceParametersBuilders.DeviceParameters

extends java.lang.Object

 java.lang.Object

↳androidx.wear.tiles.DeviceParametersBuilders.DeviceParameters

Overview

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

Methods
public intgetDevicePlatform()

Gets the platform of the device.

public floatgetScreenDensity()

Gets density of the display.

public intgetScreenHeightDp()

Gets height of the device's screen in DP.

public intgetScreenShape()

Gets the shape of the device's screen.

public intgetScreenWidthDp()

Gets width of the device's screen in DP.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods

public int getScreenWidthDp()

Gets width of the device's screen in DP.

public int getScreenHeightDp()

Gets height of the device's screen in DP.

public float getScreenDensity()

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

public int getDevicePlatform()

Gets the platform of the device.

public int getScreenShape()

Gets the shape of the device's screen.