Teanga

AgentTaskState.Builder.SetIconAndContentDescription Method

Definition

Overloads

Name Description
SetIconAndContentDescription(Icon, ICharSequence)

Replaces the state icon and its accessibility description.

SetIconAndContentDescription(Icon, String)

Replaces the state icon and its string accessibility description.

SetIconAndContentDescription(Icon, ICharSequence)

Replaces the state icon and its accessibility description.

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

Parameters

icon
Icon

The non-null icon for the next state.

contentDescription
ICharSequence

The non-null accessibility description for that icon.

Returns

This builder.

Attributes

Remarks

Use a monochrome icon for system tinting. Both arguments must be non-null; this setter retains their object references.

Applies to

SetIconAndContentDescription(Icon, String)

Replaces the state icon and its string accessibility description.

public Android.AgentIcon.AgentTaskState.Builder SetIconAndContentDescription(Android.Graphics.Drawables.Icon icon, string contentDescription);
member this.SetIconAndContentDescription : Android.Graphics.Drawables.Icon * string -> Android.AgentIcon.AgentTaskState.Builder

Parameters

icon
Icon

The non-null icon for the next state.

contentDescription
String

The non-null accessibility description for that icon, as a string.

Returns

This builder.

Remarks

This is the string overload of the character-sequence setter. Both arguments must be non-null. Use a monochrome icon for system tinting.

Applies to