语言

Notification.ProjectedExtender.SetContentIntent(PendingIntent) 方法

定义

设置在点击该设备上的通知时将在 Projected 设备上打开 PendingIntent。

[Android.Runtime.Register("setContentIntent", "(Landroid/app/PendingIntent;)Landroid/app/Notification$ProjectedExtender;", "", ApiSince=37)]
public Android.App.Notification.ProjectedExtender SetContentIntent(Android.App.PendingIntent? intent);
[<Android.Runtime.Register("setContentIntent", "(Landroid/app/PendingIntent;)Landroid/app/Notification$ProjectedExtender;", "", ApiSince=37)>]
member this.SetContentIntent : Android.App.PendingIntent -> Android.App.Notification.ProjectedExtender

参数

intent
PendingIntent

点击时要触发的 PendingIntent。 此值可能为 null。

返回

此 ProjectedExtender 对象用于链接。 此值不能为 null。

属性

注解

设置在点击该设备上的通知时将在 Projected 设备上打开 PendingIntent。 这不同于通知的主 Notification.contentIntent,通常在主机设备上点击通知时触发(例如电话)。

Android 参考。android.app.Notification.ProjectedExtender.setContentIntent

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于