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
指定内联建议的 UI 规范。
- pinned
- Boolean
指示是否应在主机中固定 UI(因此不可滚动且不可筛选)。 但是,无论 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。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。