Google is committed to advancing racial equity for Black communities. See how.

Builder

class Builder
kotlin.Any
   ↳ androidx.window.DeviceState.Builder

Builder for DeviceState objects.

Summary

Public constructors

Creates an initially empty builder.

Public methods

open DeviceState

Creates a DeviceState instance with the specified fields.

open DeviceState.Builder
setPosture(posture: Int)

Set the posture for the DeviceState instance.

Public constructors

<init>

Builder()

Creates an initially empty builder.

Public methods

build

@NonNull open fun build(): DeviceState

Creates a DeviceState instance with the specified fields.

Return
DeviceState A DeviceState instance.

setPosture

@NonNull open fun setPosture(posture: Int): DeviceState.Builder

Set the posture for the DeviceState instance.