語言

Notification.Builder.SetContentInfo 方法

定義

多載

名稱 Description
SetContentInfo(ICharSequence)
已淘汰.

此方法在 API 等級 24 被棄用。

SetContentInfo(String)
已淘汰.

此方法在 API 等級 24 被棄用。

SetContentInfo(ICharSequence)

警告

deprecated

此方法在 API 等級 24 被棄用。

[Android.Runtime.Register("setContentInfo", "(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder;", "GetSetContentInfo_Ljava_lang_CharSequence_Handler")]
[System.Obsolete("deprecated")]
public virtual Android.App.Notification.Builder? SetContentInfo(Java.Lang.ICharSequence? info);
[<Android.Runtime.Register("setContentInfo", "(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder;", "GetSetContentInfo_Ljava_lang_CharSequence_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member SetContentInfo : Java.Lang.ICharSequence -> Android.App.Notification.Builder
override this.SetContentInfo : Java.Lang.ICharSequence -> Android.App.Notification.Builder

參數

info
ICharSequence

角色序列

傳回

這個 Android.App.Notification.Builder 實例,允許通話串接。

屬性

備註

此方法在 API 等級 24 被棄用。 改用 setSubText(CharSequence) 來設定標頭中的文字。 針對針對低於 Build.VERSION_CODES 版本的舊有應用程式。N 這個欄位仍會出現,但潛台詞會優先。

關於此通知的一小部分補充資訊。 平台範本會在通知的最後一行(如果小圖示放在那裡,則在右邊)畫出這個符號。

Android 參考資料。android.app.Notification.Builder.setContentInfo

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

SetContentInfo(String)

警告

deprecated

此方法在 API 等級 24 被棄用。

[System.Obsolete("deprecated")]
public Android.App.Notification.Builder? SetContentInfo(string? info);
[<System.Obsolete("deprecated")>]
member this.SetContentInfo : string -> Android.App.Notification.Builder

參數

info
String

角色序列

傳回

這個 Android.App.Notification.Builder 實例,允許通話串接。

屬性

備註

此方法在 API 等級 24 被棄用。 改用 setSubText(CharSequence) 來設定標頭中的文字。 針對針對低於 Build.VERSION_CODES 版本的舊有應用程式。N 這個欄位仍會出現,但潛台詞會優先。

關於此通知的一小部分補充資訊。 平台範本會在通知的最後一行(如果小圖示放在那裡,則在右邊)畫出這個符號。

Android 參考資料。android.app.Notification.Builder.setContentInfo

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於