語言

InlinePresentation.Slice 屬性

定義

代表 UI 內容與內嵌建議的動作。

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

屬性值

屬性

備註

代表 UI 內容與內嵌建議的動作。

切片應該使用androidx自動填充函式庫 androidx.autofill.inline.v1.InlineSuggestionUi.Content.Builder 中提供的內容建構器,例如,然後轉換成帶有 androidx.autofill.inline.UiVersions.Content#getSlice()的切片。

Java 文件 android.service.autofill.InlinePresentation.getSlice()。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於