public class

DisplayFeature.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.window.DisplayFeature.Builder

Overview

Builder for DisplayFeature objects.

Summary

Constructors
publicBuilder()

Creates an initially empty builder.

Methods
public DisplayFeaturebuild()

Creates a DisplayFeature instance with the specified fields.

public DisplayFeature.BuildersetBounds(Rect bounds)

Set the bounds for the DisplayFeature instance.

public DisplayFeature.BuildersetType(int type)

Set the type for the DisplayFeature instance.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Creates an initially empty builder.

Methods

public DisplayFeature.Builder setBounds(Rect bounds)

Set the bounds for the DisplayFeature instance.

public DisplayFeature.Builder setType(int type)

Set the type for the DisplayFeature instance.

public DisplayFeature build()

Creates a DisplayFeature instance with the specified fields.

Returns:

A DisplayFeature instance.