Language

AgentTaskEvent.Builder.SetText Method

Definition

Overloads

Name Description
SetText(ICharSequence)

Replaces the event text.

SetText(String)

Replaces the event text with a string.

SetText(ICharSequence)

Replaces the event text.

[Android.Runtime.Register("setText", "(Ljava/lang/CharSequence;)Landroid/agenticon/AgentTaskEvent$Builder;", "", ApiSince=37)]
public Android.AgentIcon.AgentTaskEvent.Builder SetText(Java.Lang.ICharSequence? text);
[<Android.Runtime.Register("setText", "(Ljava/lang/CharSequence;)Landroid/agenticon/AgentTaskEvent$Builder;", "", ApiSince=37)>]
member this.SetText : Java.Lang.ICharSequence -> Android.AgentIcon.AgentTaskEvent.Builder

Parameters

text
ICharSequence

The event text, or null for no text.

Returns

This builder.

Attributes

Remarks

Keep text short for the limited status-bar space. Empty or null text requires at least one leading or trailing icon when the event is built.

Applies to

SetText(String)

Replaces the event text with a string.

public Android.AgentIcon.AgentTaskEvent.Builder SetText(string? text);
member this.SetText : string -> Android.AgentIcon.AgentTaskEvent.Builder

Parameters

text
String

The event text as a string, or null for no text.

Returns

This builder.

Remarks

This is the string overload of the character-sequence setter. Keep the text short; empty or null text requires at least one leading or trailing icon when the event is built.

Applies to