语言

Notification.ContentIntent 属性

定义

单击展开状态项时要执行的意向。

[Android.Runtime.Register("contentIntent")]
public Android.App.PendingIntent? ContentIntent { get; set; }
[<Android.Runtime.Register("contentIntent")>]
member this.ContentIntent : Android.App.PendingIntent with get, set

属性值

特性

注解

单击展开状态项时要执行的意向。 如果这是一个活动,则必须包含Intent.FLAG_ACTIVITY_NEW_TASK标志,这要求你按照“任务”和“后退堆栈”文档中所述处理任务管理。 具体而言,请确保从“通知”页中读取“启动活动”,以获取从通知启动应用程序的正确方法。

Android 参考。android.app.Notification.contentIntent

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于