Builder
class Builder
| kotlin.Any | |
| ↳ | android.widget.inline.InlinePresentationSpec.Builder |
A builder for InlinePresentationSpec
Summary
| Public constructors | |
|---|---|
|
Creates a new Builder. |
|
| Public methods | |
|---|---|
| InlinePresentationSpec |
build()Builds the instance. |
| InlinePresentationSpec.Builder |
The extras encoding the UI style information. |
Public constructors
Builder
Builder(
minSize: Size,
maxSize: Size)
Creates a new Builder.
| Parameters | |
|---|---|
minSize |
Size: The minimal size of the suggestion. This value cannot be null. |
maxSize |
Size: The maximal size of the suggestion. This value cannot be null. |
Public methods
build
fun build(): InlinePresentationSpec
Builds the instance. This builder should not be touched after calling this!
| Return | |
|---|---|
InlinePresentationSpec |
This value cannot be null. |
setStyle
fun setStyle(value: Bundle): InlinePresentationSpec.Builder
The extras encoding the UI style information.
The style bundles can be created using the relevant Style classes and their builders in the androidx autofill library e.g. androidx.autofill.inline.UiVersions.StylesBuilder.
The style must be set for the suggestion to render properly.
Note: There should be no remote objects in the bundle, all included remote objects will be removed from the bundle before transmission.
| Parameters | |
|---|---|
value |
Bundle: This value cannot be null. |
| Return | |
|---|---|
InlinePresentationSpec.Builder |
This value cannot be null. |