AgentTaskEvent.Builder.SetContentDescription 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 |
|---|---|
| SetContentDescription(ICharSequence) |
Sets the event's accessibility description. |
| SetContentDescription(String) |
Sets the event's string accessibility description. |
SetContentDescription(ICharSequence)
Sets the event's accessibility description.
[Android.Runtime.Register("setContentDescription", "(Ljava/lang/CharSequence;)Landroid/agenticon/AgentTaskEvent$Builder;", "", ApiSince=37)]
public Android.AgentIcon.AgentTaskEvent.Builder SetContentDescription(Java.Lang.ICharSequence? contentDescription);
[<Android.Runtime.Register("setContentDescription", "(Ljava/lang/CharSequence;)Landroid/agenticon/AgentTaskEvent$Builder;", "", ApiSince=37)>]
member this.SetContentDescription : Java.Lang.ICharSequence -> Android.AgentIcon.AgentTaskEvent.Builder
Parameters
- contentDescription
- ICharSequence
A description of the entire event, or null for display fallback.
Returns
This builder.
- Attributes
Remarks
Describe both icons and text. If no description is supplied, display can use the event text or a system-selected description.
Applies to
SetContentDescription(String)
Sets the event's string accessibility description.
public Android.AgentIcon.AgentTaskEvent.Builder SetContentDescription(string? contentDescription);
member this.SetContentDescription : string -> Android.AgentIcon.AgentTaskEvent.Builder
Parameters
- contentDescription
- String
A string description of the entire event, or null for display fallback.
Returns
This builder.
Remarks
This is the string overload of the character-sequence setter. Describe both icons and text; a null description lets display use the event text or a system-selected description.