Notification.Builder.SetSubText 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| SetSubText(ICharSequence) |
這會提供一些額外資訊,會在通知中顯示。 |
| SetSubText(String) |
這會提供一些額外資訊,會在通知中顯示。 |
SetSubText(ICharSequence)
這會提供一些額外資訊,會在通知中顯示。
[Android.Runtime.Register("setSubText", "(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder;", "GetSetSubText_Ljava_lang_CharSequence_Handler")]
public virtual Android.App.Notification.Builder SetSubText(Java.Lang.ICharSequence? text);
[<Android.Runtime.Register("setSubText", "(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder;", "GetSetSubText_Ljava_lang_CharSequence_Handler")>]
abstract member SetSubText : Java.Lang.ICharSequence -> Android.App.Notification.Builder
override this.SetSubText : Java.Lang.ICharSequence -> Android.App.Notification.Builder
參數
- text
- ICharSequence
角色序列
傳回
這個 Android.App.Notification.Builder 實例,允許通話串接。
- 屬性
備註
這會提供一些額外資訊,會在通知中顯示。 不保證該書確切展示地點。 此資訊僅在有助於理解通知時提供。 你提供越多文字,閱讀感就越差。 例如,電子郵件客戶端只有在新增多個電子郵件帳戶時才應在此提供帳號名稱。
截至Build.VERSION_CODES年。N 這些資訊會顯示在通知標頭區。 在 Build.VERSION_CODES 之前的 Android 版本中,N 這會顯示在平台通知範本的第三行文字中。 你不應該同時使用 setProgress(int, int, boolean) 在這些版本上;它們位於同一位置。
Android 參考資料。android.app.Notification.Builder.setSubText
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
SetSubText(String)
這會提供一些額外資訊,會在通知中顯示。
public Android.App.Notification.Builder SetSubText(string? text);
member this.SetSubText : string -> Android.App.Notification.Builder
參數
- text
- String
角色序列
傳回
這個 Android.App.Notification.Builder 實例,允許通話串接。
備註
這會提供一些額外資訊,會在通知中顯示。 不保證該書確切展示地點。 此資訊僅在有助於理解通知時提供。 你提供越多文字,閱讀感就越差。 例如,電子郵件客戶端只有在新增多個電子郵件帳戶時才應在此提供帳號名稱。
截至Build.VERSION_CODES年。N 這些資訊會顯示在通知標頭區。 在 Build.VERSION_CODES 之前的 Android 版本中,N 這會顯示在平台通知範本的第三行文字中。 你不應該同時使用 setProgress(int, int, boolean) 在這些版本上;它們位於同一位置。
Android 參考資料。android.app.Notification.Builder.setSubText
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。