语言

Notification.TvExtender.SetContentIntent(PendingIntent) 方法

定义

提供在电视上选择通知时要发送的 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

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

适用于