Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Ctors](https://developer.android.com/reference/android/widget/inline/InlinePresentationSpec.Builder#pubctors) \| [Methods](https://developer.android.com/reference/android/widget/inline/InlinePresentationSpec.Builder#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/widget/inline/InlinePresentationSpec.Builder#inhmethods)

# InlinePresentationSpec.Builder

*** ** * ** ***


`
public
static
final

class
InlinePresentationSpec.Builder
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.widget.inline.InlinePresentationSpec.Builder |

<br />

*** ** * ** ***

A builder for `https://developer.android.com/reference/android/widget/inline/InlinePresentationSpec`

## Summary

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/widget/inline/InlinePresentationSpec.Builder#Builder(android.util.Size,%20android.util.Size)(https://developer.android.com/reference/android/util/Size minSize, https://developer.android.com/reference/android/util/Size maxSize) ` Creates a new Builder. |

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/android/widget/inline/InlinePresentationSpec` | ` https://developer.android.com/reference/android/widget/inline/InlinePresentationSpec.Builder#build()() ` Builds the instance. |
| ` https://developer.android.com/reference/android/widget/inline/InlinePresentationSpec.Builder` | ` https://developer.android.com/reference/android/widget/inline/InlinePresentationSpec.Builder#setStyle(android.os.Bundle)(https://developer.android.com/reference/android/os/Bundle value) ` The extras encoding the UI style information. |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` https://developer.android.com/reference/java/lang/Object#finalize()() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait()() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||

## Public constructors

### Builder

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Builder (Size minSize, 
                Size maxSize)
```

Creates a new Builder.

<br />

| Parameters ||
|---|---|
| `minSize` | `Size`: The minimal size of the suggestion. This value cannot be `null`. <br /> |
| `maxSize` | `Size`: The maximal size of the suggestion. This value cannot be `null`. <br /> |

## Public methods

### build

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public InlinePresentationSpec build ()
```

Builds the instance. This builder should not be touched after calling this!

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/widget/inline/InlinePresentationSpec` | This value cannot be `null`. <br /> |

### setStyle

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public InlinePresentationSpec.Builder setStyle (Bundle value)
```

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.

<br />

<br />

| Parameters ||
|---|---|
| `value` | `Bundle`: This value cannot be `null`. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/widget/inline/InlinePresentationSpec.Builder` | This value cannot be `null`. <br /> |