Language

AgentTaskEvent.Builder Constructors

Definition

Overloads

Name Description
AgentTaskEvent.Builder(AgentTaskEvent+Builder)

Creates a builder from another event builder.

AgentTaskEvent.Builder(ICharSequence)

Creates a new Builder with a given non-empty text for the event.

AgentTaskEvent.Builder(String)

Creates an event builder with string text.

AgentTaskEvent.Builder(IList<Icon>, IList<Icon>)

Creates a new Builder with given lists of leading and trailing icons.

AgentTaskEvent.Builder(AgentTaskEvent+Builder)

Creates a builder from another event builder.

[Android.Runtime.Register(".ctor", "(Landroid/agenticon/AgentTaskEvent$Builder;)V", "", ApiSince=37)]
public Builder(Android.AgentIcon.AgentTaskEvent.Builder other);
[<Android.Runtime.Register(".ctor", "(Landroid/agenticon/AgentTaskEvent$Builder;)V", "", ApiSince=37)>]
new Android.AgentIcon.AgentTaskEvent.Builder : Android.AgentIcon.AgentTaskEvent.Builder -> Android.AgentIcon.AgentTaskEvent.Builder

Parameters

other
AgentTaskEvent.Builder

The event builder whose settings are copied.

Attributes

Remarks

The icon lists are copied without cloning their icons. Text, background, click action, description, and extension content retain the source builder's object references.

Applies to

AgentTaskEvent.Builder(ICharSequence)

Creates a new Builder with a given non-empty text for the event.

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;)V", "", ApiSince=37)]
public Builder(Java.Lang.ICharSequence text);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;)V", "", ApiSince=37)>]
new Android.AgentIcon.AgentTaskEvent.Builder : Java.Lang.ICharSequence -> Android.AgentIcon.AgentTaskEvent.Builder

Parameters

text
ICharSequence

the text to show.

Attributes

Remarks

The text must not be null or empty. Both icon lists are initially empty.

Applies to

AgentTaskEvent.Builder(String)

Creates an event builder with string text.

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;)V", "", ApiSince=37)]
public Builder(string text);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;)V", "", ApiSince=37)>]
new Android.AgentIcon.AgentTaskEvent.Builder : string -> Android.AgentIcon.AgentTaskEvent.Builder

Parameters

text
String

The non-null, non-empty text for the event.

Attributes

Remarks

This is the string overload of the character-sequence constructor. Both icon lists are initially empty.

Applies to

AgentTaskEvent.Builder(IList<Icon>, IList<Icon>)

Creates a new Builder with given lists of leading and trailing icons.

[Android.Runtime.Register(".ctor", "(Ljava/util/List;Ljava/util/List;)V", "", ApiSince=37)]
public Builder(System.Collections.Generic.IList<Android.Graphics.Drawables.Icon> leadingIcons, System.Collections.Generic.IList<Android.Graphics.Drawables.Icon> trailingIcons);
[<Android.Runtime.Register(".ctor", "(Ljava/util/List;Ljava/util/List;)V", "", ApiSince=37)>]
new Android.AgentIcon.AgentTaskEvent.Builder : System.Collections.Generic.IList<Android.Graphics.Drawables.Icon> * System.Collections.Generic.IList<Android.Graphics.Drawables.Icon> -> Android.AgentIcon.AgentTaskEvent.Builder

Parameters

leadingIcons
IList<Icon>

a list of leading icons for the event.

trailingIcons
IList<Icon>

a list of trailing icons for the event.

Attributes

Remarks

The lists must not be null, must not contain null icons, and must not both be empty. Their contents are copied without cloning the icons. Text is initially null; building the event truncates each list to its permitted limit. Icons retain their colors and can be scaled to fit.

Applies to