public class

DeviceParametersReaders.DeviceParameters

extends java.lang.Object

 java.lang.Object

↳androidx.wear.tiles.readers.DeviceParametersReaders.DeviceParameters

Overview

Reader for the Device Parameters returned from RequestReaders.TileRequest.getDeviceParameters().

Summary

Methods
public intgetDevicePlatform()

Get the platform of the device.

public floatgetScreenDensity()

Get the density of the screen.

public intgetScreenHeightDp()

Get the height of the screen, in DP.

public intgetScreenShape()

Get the shape of the screen of the device.

public intgetScreenWidthDp()

Get the width of the screen, in DP.

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

Methods

public int getScreenWidthDp()

Get the width of the screen, in DP.

public int getScreenHeightDp()

Get the height of the screen, in DP.

public float getScreenDensity()

Get the density of the screen. This value is the scaling factor to get from DP to Pixels, where PX = DP * density.

public int getDevicePlatform()

Get the platform of the device.

public int getScreenShape()

Get the shape of the screen of the device.