Partager via


CustomDescription.Builder Constructors

Definition

Overloads

CustomDescription.Builder(RemoteViews)

Default constructor.

CustomDescription.Builder(IntPtr, JniHandleOwnership)

CustomDescription.Builder(RemoteViews)

Default constructor.

[Android.Runtime.Register(".ctor", "(Landroid/widget/RemoteViews;)V", "", ApiSince=27)]
public Builder (Android.Widget.RemoteViews parentPresentation);
[<Android.Runtime.Register(".ctor", "(Landroid/widget/RemoteViews;)V", "", ApiSince=27)>]
new Android.Service.Autofill.CustomDescription.Builder : Android.Widget.RemoteViews -> Android.Service.Autofill.CustomDescription.Builder

Parameters

parentPresentation
RemoteViews

template presentation with (optional) children views.

Attributes

Remarks

Default constructor.

<b>Note:</b> If any child view of presentation triggers a RemoteViews#setOnClickPendingIntent(int, android.app.PendingIntent) pending intent on click, such PendingIntent must follow the restrictions below, otherwise it might not be triggered or the autofill save UI might not be shown when its activity is finished: <ul> <li>It cannot be created with the PendingIntent#FLAG_IMMUTABLE flag. <li>It must be a PendingIntent for an Activity. <li>The activity must call Activity#finish() when done. <li>The activity should not launch other activities. </ul>

Java documentation for android.service.autofill.CustomDescription.Builder.CustomDescription$Builder(android.widget.RemoteViews).

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

CustomDescription.Builder(IntPtr, JniHandleOwnership)

protected Builder (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Service.Autofill.CustomDescription.Builder : nativeint * Android.Runtime.JniHandleOwnership -> Android.Service.Autofill.CustomDescription.Builder

Parameters

javaReference
IntPtr

nativeint

Remarks

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