AgentTaskEvent.Builder.SetText Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.