O Google tem o compromisso de promover a igualdade racial para as comunidades negras. Saiba como.

DeviceState.Builder

public static final class DeviceState.Builder
extends Object

java.lang.Object
   ↳ androidx.window.DeviceState.Builder


Builder for DeviceState objects.

Summary

Public constructors

Builder()

Creates an initially empty builder.

Public methods

DeviceState build()

Creates a DeviceState instance with the specified fields.

DeviceState.Builder setPosture(int posture)

Sets the posture for the DeviceState instance.

Inherited methods

Public constructors

Builder

public Builder ()

Creates an initially empty builder.

Public methods

build

public DeviceState build ()

Creates a DeviceState instance with the specified fields.

Returns
DeviceState A DeviceState instance.

setPosture

public DeviceState.Builder setPosture (int posture)

Sets the posture for the DeviceState instance.

Parameters
posture int

Returns
DeviceState.Builder