Udostępnij za pośrednictwem


ChooserAction.Builder Constructors

Definition

Overloads

ChooserAction.Builder(Icon, ICharSequence, PendingIntent)

Construct a new builder for ChooserAction object.

ChooserAction.Builder(Icon, String, PendingIntent)

ChooserAction.Builder(Icon, ICharSequence, PendingIntent)

Construct a new builder for ChooserAction object.

[Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Icon;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V", "", ApiSince=34)]
public Builder (Android.Graphics.Drawables.Icon icon, Java.Lang.ICharSequence label, Android.App.PendingIntent action);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Icon;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V", "", ApiSince=34)>]
new Android.Service.Chooser.ChooserAction.Builder : Android.Graphics.Drawables.Icon * Java.Lang.ICharSequence * Android.App.PendingIntent -> Android.Service.Chooser.ChooserAction.Builder

Parameters

icon
Icon

an Icon representing this action, consisting of a white foreground atop a transparent background.

label
ICharSequence

label the user-readable label for this action.

action
PendingIntent

PendingIntent to be invoked when the action is selected.

Attributes

Remarks

Construct a new builder for ChooserAction object.

Java documentation for android.service.chooser.ChooserAction.Builder.ChooserAction$Builder(android.graphics.drawable.Icon, java.lang.CharSequence, android.app.PendingIntent).

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

ChooserAction.Builder(Icon, String, PendingIntent)

[Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Icon;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V", "", ApiSince=34)]
public Builder (Android.Graphics.Drawables.Icon icon, string label, Android.App.PendingIntent action);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Icon;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V", "", ApiSince=34)>]
new Android.Service.Chooser.ChooserAction.Builder : Android.Graphics.Drawables.Icon * string * Android.App.PendingIntent -> Android.Service.Chooser.ChooserAction.Builder

Parameters

icon
Icon
label
String
action
PendingIntent
Attributes

Applies to