Freigeben über


InlinePresentation(Slice, InlinePresentationSpec, Boolean) Constructor

Definition

Creates a new 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

Parameters

slice
Slice

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

          &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

Specifies the UI specification for the inline suggestion.

pinned
Boolean

Indicates whether the UI should be pinned, hence non-scrollable and non-filterable, in the host. However, it's eventually up to the host whether the UI is pinned or not.

          &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.
Attributes

Remarks

Creates a new InlinePresentation.

Java documentation for android.service.autofill.InlinePresentation.InlinePresentation(android.app.slice.Slice, android.widget.inline.InlinePresentationSpec, boolean).

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