InlinePresentation(Slice, InlinePresentationSpec, Boolean) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
<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
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.
<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.
- Attributes
Remarks
Creates a new InlinePresentation.
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.