DeviceParametersBuilders


public final class DeviceParametersBuilders


Builders for request messages used to fetch layouts and resources.

Summary

Nested types

Capabilities describing the features that the renderer supports.

Builder for Capabilities

@RequiresSchemaVersion(major = 1, minor = 0)
public final class DeviceParametersBuilders.DeviceParameters

Parameters describing the device requesting a layout update.

Builder for DeviceParameters

Constants

static final int
@RequiresSchemaVersion(major = 1, minor = 0)
DEVICE_PLATFORM_UNDEFINED = 0

Device platform is undefined.

static final int
@RequiresSchemaVersion(major = 1, minor = 0)
DEVICE_PLATFORM_WEAR_OS = 1

Device is a Wear OS device.

static final int
@RequiresSchemaVersion(major = 1, minor = 0)
SCREEN_SHAPE_RECT = 2

Rectangular screens.

static final int
@RequiresSchemaVersion(major = 1, minor = 0)
SCREEN_SHAPE_ROUND = 1

A round screen (typically found on most Wear devices).

static final int
@RequiresSchemaVersion(major = 1, minor = 0)
SCREEN_SHAPE_UNDEFINED = 0

Screen shape is undefined.

Constants

DEVICE_PLATFORM_UNDEFINED

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
public static final int DEVICE_PLATFORM_UNDEFINED = 0

Device platform is undefined.

DEVICE_PLATFORM_WEAR_OS

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
public static final int DEVICE_PLATFORM_WEAR_OS = 1

Device is a Wear OS device.

SCREEN_SHAPE_RECT

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
public static final int SCREEN_SHAPE_RECT = 2

Rectangular screens.

SCREEN_SHAPE_ROUND

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
public static final int SCREEN_SHAPE_ROUND = 1

A round screen (typically found on most Wear devices).

SCREEN_SHAPE_UNDEFINED

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
public static final int SCREEN_SHAPE_UNDEFINED = 0

Screen shape is undefined.