语言

Notification.TvExtender.SetDeleteIntent(PendingIntent) 方法

定义

提供一个 PendingIntent,以在电视上的用户显式清除通知时发送。

[Android.Runtime.Register("setDeleteIntent", "(Landroid/app/PendingIntent;)Landroid/app/Notification$TvExtender;", "", ApiSince=35)]
public Android.App.Notification.TvExtender SetDeleteIntent(Android.App.PendingIntent? intent);
[<Android.Runtime.Register("setDeleteIntent", "(Landroid/app/PendingIntent;)Landroid/app/Notification$TvExtender;", "", ApiSince=35)>]
member this.SetDeleteIntent : Android.App.PendingIntent -> Android.App.Notification.TvExtender

参数

intent
PendingIntent

PendingIntent:关联通知删除的 PendingIntent。 此值可能为 null。

返回

此方法链接的此对象。 此值不能为 null。

特性

注解

提供一个 PendingIntent,以在电视上的用户显式清除通知时发送。 如果提供,则使用它,而不是在通知级别指定的删除意向。

Android 参考。android.app.Notification.TvExtender.setDeleteIntent

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

适用于