public final class

DeviceParametersBuilders.DeviceParameters.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.wear.tiles.DeviceParametersBuilders.DeviceParameters.Builder

Overview

Builder for DeviceParametersBuilders.DeviceParameters

Summary

Constructors
publicBuilder()

Methods
public DeviceParametersBuilders.DeviceParametersbuild()

Builds an instance from accumulated values.

public DeviceParametersBuilders.DeviceParameters.BuildersetDevicePlatform(int devicePlatform)

Sets the platform of the device.

public DeviceParametersBuilders.DeviceParameters.BuildersetScreenDensity(float screenDensity)

Sets density of the display.

public DeviceParametersBuilders.DeviceParameters.BuildersetScreenHeightDp(int screenHeightDp)

Sets height of the device's screen in DP.

public DeviceParametersBuilders.DeviceParameters.BuildersetScreenShape(int screenShape)

Sets the shape of the device's screen.

public DeviceParametersBuilders.DeviceParameters.BuildersetScreenWidthDp(int screenWidthDp)

Sets width of the device's screen in DP.

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

Constructors

public Builder()

Methods

public DeviceParametersBuilders.DeviceParameters.Builder setScreenWidthDp(int screenWidthDp)

Sets width of the device's screen in DP.

public DeviceParametersBuilders.DeviceParameters.Builder setScreenHeightDp(int screenHeightDp)

Sets height of the device's screen in DP.

public DeviceParametersBuilders.DeviceParameters.Builder setScreenDensity(float screenDensity)

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

public DeviceParametersBuilders.DeviceParameters.Builder setDevicePlatform(int devicePlatform)

Sets the platform of the device.

public DeviceParametersBuilders.DeviceParameters.Builder setScreenShape(int screenShape)

Sets the shape of the device's screen.

Builds an instance from accumulated values.