DisplayFeature.Builder
public
static
class
DisplayFeature.Builder
extends Object
| java.lang.Object | |
| ↳ | androidx.window.DisplayFeature.Builder |
Builder for DisplayFeature objects.
Summary
Public constructors | |
|---|---|
Builder()
Creates an initially empty builder. |
|
Public methods | |
|---|---|
DisplayFeature
|
build()
Creates a |
DisplayFeature.Builder
|
setBounds(Rect bounds)
Set the bounds for the |
DisplayFeature.Builder
|
setType(int type)
Set the type for the |
Inherited methods | |
|---|---|
Public constructors
Builder
public Builder ()
Creates an initially empty builder.
Public methods
build
public DisplayFeature build ()
Creates a DisplayFeature instance with the specified fields.
| Returns | |
|---|---|
DisplayFeature |
A DisplayFeature instance. |
setBounds
public DisplayFeature.Builder setBounds (Rect bounds)
Set the bounds for the DisplayFeature instance.
| Parameters | |
|---|---|
bounds |
Rect |
| Returns | |
|---|---|
DisplayFeature.Builder |
|
setType
public DisplayFeature.Builder setType (int type)
Set the type for the DisplayFeature instance.
| Parameters | |
|---|---|
type |
int |
| Returns | |
|---|---|
DisplayFeature.Builder |
|