語言

AgentTaskState.Builder.SetIconAndContentDescription 方法

定義

多載

名稱 Description
SetIconAndContentDescription(Icon, ICharSequence)

取代州圖示及其無障礙說明。

SetIconAndContentDescription(Icon, String)

取代狀態圖示及其字串可及性描述。

SetIconAndContentDescription(Icon, ICharSequence)

取代州圖示及其無障礙說明。

[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

參數

icon
Icon

下一個狀態的非空圖示。

contentDescription
ICharSequence

那個圖示的非空無障礙描述。

傳回

這個建築商。

屬性

備註

系統調色時使用單色圖示。 兩個參數都必須非零;此設定器保留其物件參考。

適用於

SetIconAndContentDescription(Icon, String)

取代狀態圖示及其字串可及性描述。

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

參數

icon
Icon

下一個狀態的非空圖示。

contentDescription
String

該圖示的非空無障礙描述,以字串形式呈現。

傳回

這個建築商。

備註

這是字元序列設定器的字串過載。 兩個參數都必須非零。 系統調色時使用單色圖示。

適用於