Notification.Builder.SetContentInfo 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| 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
CharSequence
返回
此 Android.App.Notification.Builder 实例允许链接调用。
- 特性
注解
此方法在 API 级别 24 中已弃用。 请改用 setSubText(CharSequence)在标头中设置文本。 对于面向低于Build.VERSION_CODES版本的旧版应用。N 此字段仍将显示,但子文本将优先。
与此通知相关的一小段附加信息。 平台模板将在通知的最后一行上绘制此内容(如果已放置在该通知的右侧)。
Android 参考。android.app.Notification.Builder.setContentInfo
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
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
CharSequence
返回
此 Android.App.Notification.Builder 实例允许链接调用。
- 特性
注解
此方法在 API 级别 24 中已弃用。 请改用 setSubText(CharSequence)在标头中设置文本。 对于面向低于Build.VERSION_CODES版本的旧版应用。N 此字段仍将显示,但子文本将优先。
与此通知相关的一小段附加信息。 平台模板将在通知的最后一行上绘制此内容(如果已放置在该通知的右侧)。
Android 参考。android.app.Notification.Builder.setContentInfo
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。