Builder
class Builder
kotlin.Any | |
↳ | androidx.window.DeviceState.Builder |
Builder for DeviceState
objects.
Summary
Public constructors | |
---|---|
<init>() Creates an initially empty builder. |
Public methods | |
---|---|
open DeviceState |
build() Creates a |
open DeviceState.Builder |
setPosture(posture: Int) Set the posture for the |
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.