public class

DeviceState.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.window.DeviceState.Builder

Overview

Builder for DeviceState objects.

Summary

Constructors
publicBuilder()

Creates an initially empty builder.

Methods
public DeviceStatebuild()

Creates a DeviceState instance with the specified fields.

public DeviceState.BuildersetPosture(int posture)

Set the posture for the DeviceState instance.

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

Constructors

public Builder()

Creates an initially empty builder.

Methods

public DeviceState.Builder setPosture(int posture)

Set the posture for the DeviceState instance.

public DeviceState build()

Creates a DeviceState instance with the specified fields.

Returns:

A DeviceState instance.