InlinePresentationSpec.Builder.SetStyle(Bundle) Method

Definition

Sets the extras encoding the UI style information.

[Android.Runtime.Register("setStyle", "(Landroid/os/Bundle;)Landroid/widget/inline/InlinePresentationSpec$Builder;", "", ApiSince=30)]
public Android.Widget.Inline.InlinePresentationSpec.Builder SetStyle(Android.OS.Bundle value);
[<Android.Runtime.Register("setStyle", "(Landroid/os/Bundle;)Landroid/widget/inline/InlinePresentationSpec$Builder;", "", ApiSince=30)>]
member this.SetStyle : Android.OS.Bundle -> Android.Widget.Inline.InlinePresentationSpec.Builder

Parameters

value
Bundle

The extras encoding the UI style information.

Returns

This builder.

Attributes

Remarks

The style bundles can be created using the relevant Style classes and their builders in the androidx autofill library, for example androidx.autofill.inline.UiVersions.StylesBuilder.

The style must be set for the suggestion to render properly.

There should be no remote objects in the bundle; remote objects are removed before transmission.

Java documentation for android.widget.inline.InlinePresentationSpec.Builder.setStyle(android.os.Bundle).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to