Језик

AgentTaskState.Builder Constructors

Definition

Overloads

Name Description
AgentTaskState.Builder(AgentTaskState+Builder)

Creates a builder from another state builder.

AgentTaskState.Builder(Icon, ICharSequence)

Creates a new Builder.

AgentTaskState.Builder(Icon, String)

Creates a state builder with an icon and a string description.

AgentTaskState.Builder(AgentTaskState+Builder)

Creates a builder from another state builder.

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

Parameters

other
AgentTaskState.Builder

The builder whose settings are copied.

Attributes

Remarks

The icon, description, and click-action references are copied without cloning those objects. Both animation settings are also copied.

Applies to

AgentTaskState.Builder(Icon, ICharSequence)

Creates a new Builder.

[Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Icon;Ljava/lang/CharSequence;)V", "", ApiSince=37)]
public Builder(Android.Graphics.Drawables.Icon icon, Java.Lang.ICharSequence contentDescription);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Icon;Ljava/lang/CharSequence;)V", "", ApiSince=37)>]
new Android.AgentIcon.AgentTaskState.Builder : Android.Graphics.Drawables.Icon * Java.Lang.ICharSequence -> Android.AgentIcon.AgentTaskState.Builder

Parameters

icon
Icon

the icon to display.

contentDescription
ICharSequence

the content description for accessibility.

Attributes

Remarks

The icon and description must not be null. Animation looping and interruption are initially disabled, and the click action is initially null.

Applies to

AgentTaskState.Builder(Icon, String)

Creates a state builder with an icon and a string description.

[Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Icon;Ljava/lang/CharSequence;)V", "", ApiSince=37)]
public Builder(Android.Graphics.Drawables.Icon icon, string contentDescription);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Icon;Ljava/lang/CharSequence;)V", "", ApiSince=37)>]
new Android.AgentIcon.AgentTaskState.Builder : Android.Graphics.Drawables.Icon * string -> Android.AgentIcon.AgentTaskState.Builder

Parameters

icon
Icon

The non-null icon for the state.

contentDescription
String

The non-null accessibility description for the icon.

Attributes

Remarks

This is the string overload of the character-sequence constructor. Animation looping and interruption are initially disabled, and the click action is initially null.

Applies to