The second Android 11 Developer Preview is now available, test it out and share your feedback.

WindowLayoutInfo.Builder

public static class WindowLayoutInfo.Builder
extends Object

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


Builder for WindowLayoutInfo objects.

Summary

Public constructors

WindowLayoutInfo.Builder()

Creates an initially empty builder.

Public methods

WindowLayoutInfo build()

Creates a WindowLayoutInfo instance with the specified fields.

WindowLayoutInfo.Builder setDisplayFeatures(List<DisplayFeature> displayFeatures)

Set the display features for the WindowLayoutInfo instance.

Inherited methods

Public constructors

WindowLayoutInfo.Builder

public WindowLayoutInfo.Builder ()

Creates an initially empty builder.

Public methods

build

public WindowLayoutInfo build ()

Creates a WindowLayoutInfo instance with the specified fields.

Returns
WindowLayoutInfo A WindowLayoutInfo instance.

setDisplayFeatures

public WindowLayoutInfo.Builder setDisplayFeatures (List<DisplayFeature> displayFeatures)

Set the display features for the WindowLayoutInfo instance.

Parameters
displayFeatures List

Returns
WindowLayoutInfo.Builder