InlinePresentation(Slice, InlinePresentationSpec, Boolean) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立新的 InlinePresentation。
[Android.Runtime.Register(".ctor", "(Landroid/app/slice/Slice;Landroid/widget/inline/InlinePresentationSpec;Z)V", "", ApiSince=30)]
public InlinePresentation(Android.App.Slices.Slice slice, Android.Widget.Inline.InlinePresentationSpec inlinePresentationSpec, bool pinned);
[<Android.Runtime.Register(".ctor", "(Landroid/app/slice/Slice;Landroid/widget/inline/InlinePresentationSpec;Z)V", "", ApiSince=30)>]
new Android.Service.Autofill.InlinePresentation : Android.App.Slices.Slice * Android.Widget.Inline.InlinePresentationSpec * bool -> Android.Service.Autofill.InlinePresentation
參數
- slice
- Slice
代表 UI 內容與內嵌建議的動作。
<p>The Slice should be constructed using the Content builder provided in the androidx
autofill library e.g. <code data-dev-comment-type="c">androidx.autofill.inline.v1.InlineSuggestionUi.Content.Builder</code>
and then converted to a Slice with
<code data-dev-comment-type="c">androidx.autofill.inline.UiVersions.Content#getSlice()</code>.</p>
- inlinePresentationSpec
- InlinePresentationSpec
指定內嵌建議的使用者介面規範。
- pinned
- Boolean
指示使用者介面是否應該被釘選,因此不可捲動且不可篩選。 不過,最後要看主機自己決定要不要固定 UI。
<p> Also a <code data-dev-comment-type="c">Dataset</code> with a pinned inline presentation will not be replaced by the
new data set returned from authentication intent. See
<code data-dev-comment-type="c">Dataset.Builder#setAuthentication(android.content.IntentSender)</code> for more information.
- 屬性
備註
建立新的 InlinePresentation。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。