語言

InlinePresentation(Slice, InlinePresentationSpec, Boolean) 建構函式

定義

建立新的 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 內容與內嵌建議的動作。

          &lt;p&gt;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>.&lt;/p&gt;
inlinePresentationSpec
InlinePresentationSpec

指定內嵌建議的使用者介面規範。

pinned
Boolean

指示使用者介面是否應該被釘選,因此不可捲動且不可篩選。 不過,最後要看主機自己決定要不要固定 UI。

          &lt;p&gt; 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。

Java 文件 android.service.autofill.InlinePresentation.InlinePresentation(android.app.slice.Slice, android.widget.inline.InlinePresentationSpec, boolean)。

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

適用於