RemoteViews.SetContentDescription 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| SetContentDescription(Int32, ICharSequence) |
等同於呼叫 View。 |
| SetContentDescription(Int32, String) |
等同於呼叫 View。 |
SetContentDescription(Int32, ICharSequence)
等同於呼叫 View。
[Android.Runtime.Register("setContentDescription", "(ILjava/lang/CharSequence;)V", "GetSetContentDescription_ILjava_lang_CharSequence_Handler")]
public virtual void SetContentDescription(int viewId, Java.Lang.ICharSequence? contentDescription);
[<Android.Runtime.Register("setContentDescription", "(ILjava/lang/CharSequence;)V", "GetSetContentDescription_ILjava_lang_CharSequence_Handler")>]
abstract member SetContentDescription : int * Java.Lang.ICharSequence -> unit
override this.SetContentDescription : int * Java.Lang.ICharSequence -> unit
參數
- viewId
- Int32
內容描述應該變更的視圖的 ID。
- contentDescription
- ICharSequence
視角的新內容說明。
- 屬性
備註
Java 文件 android.widget.RemoteViews.setContentDescription(int, java.lang.CharSequence)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
SetContentDescription(Int32, String)
等同於呼叫 View。
public void SetContentDescription(int viewId, string? contentDescription);
member this.SetContentDescription : int * string -> unit
參數
- viewId
- Int32
內容描述應該變更的視圖的 ID。
- contentDescription
- String
視角的新內容說明。
備註
Java 文件 android.widget.RemoteViews.setContentDescription(int, java.lang.CharSequence)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。