DisplayFeature.Builder
public
static
class
DisplayFeature.Builder
extends Object
| java.lang.Object | |
| ↳ | androidx.window.DisplayFeature.Builder |
This class is deprecated.
Will be removed in the next alpha.
Summary
Public constructors | |
|---|---|
Builder()
|
|
Public methods | |
|---|---|
DisplayFeature
|
build()
|
DisplayFeature.Builder
|
setBounds(Rect bounds)
Update the bounds in the builder. |
DisplayFeature.Builder
|
setType(int type)
Update the type in the builder. |
Inherited methods | |
|---|---|
Public constructors
Builder
public Builder ()
Public methods
build
public DisplayFeature build ()
| Returns | |
|---|---|
DisplayFeature |
DisplayFeature with the bounds and type from the builder.
|
setBounds
public DisplayFeature.Builder setBounds (Rect bounds)
Update the bounds in the builder.
| Parameters | |
|---|---|
bounds |
Rect: for the DisplayFeature |
| Returns | |
|---|---|
DisplayFeature.Builder |
this with the bounds updated.
|
setType
public DisplayFeature.Builder setType (int type)
Update the type in the builder.
| Parameters | |
|---|---|
type |
int: for the DisplayFeature |
| Returns | |
|---|---|
DisplayFeature.Builder |
this with the type updated.
|