Google は、黒人コミュニティに対する人種平等の促進に取り組んでいます。取り組みを見る

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.