Share via


InlinePresentation.Slice Property

Definition

Represents the UI content and the action for the inline suggestion.

public Android.App.Slices.Slice Slice { [Android.Runtime.Register("getSlice", "()Landroid/app/slice/Slice;", "", ApiSince=30)] get; }
[<get: Android.Runtime.Register("getSlice", "()Landroid/app/slice/Slice;", "", ApiSince=30)>]
member this.Slice : Android.App.Slices.Slice

Property Value

Attributes

Remarks

Represents the UI content and the action for the inline suggestion.

The Slice should be constructed using the Content builder provided in the androidx autofill library e.g. androidx.autofill.inline.v1.InlineSuggestionUi.Content.Builder and then converted to a Slice with androidx.autofill.inline.UiVersions.Content#getSlice().

Java documentation for android.service.autofill.InlinePresentation.getSlice().

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