Notification.TvExtender.SetContentIntent(PendingIntent) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供在电视上选择通知时要发送的 PendingIntent。
[Android.Runtime.Register("setContentIntent", "(Landroid/app/PendingIntent;)Landroid/app/Notification$TvExtender;", "", ApiSince=35)]
public Android.App.Notification.TvExtender SetContentIntent(Android.App.PendingIntent? intent);
[<Android.Runtime.Register("setContentIntent", "(Landroid/app/PendingIntent;)Landroid/app/Notification$TvExtender;", "", ApiSince=35)>]
member this.SetContentIntent : Android.App.PendingIntent -> Android.App.Notification.TvExtender
参数
- intent
- PendingIntent
PendingIntent:关联通知内容的 PendingIntent。 此值可能为 null。
返回
此方法链接的此对象。 此值不能为 null。
- 特性
注解
提供在电视上选择通知时要发送的 PendingIntent。 如果提供,则使用它,而不是在通知级别指定的内容意向。
Android 参考。android.app.Notification.TvExtender.setContentIntent
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。