語言

Notification.ProjectedExtender.SetContentIntent(PendingIntent) 方法

定義

設定當通知在該裝置被點擊時,該裝置會開啟 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。

傳回

這個用於串接的投影延伸器物件。 這個值不可能為零值。

屬性

備註

設定當通知在該裝置被點擊時,該裝置會開啟 PendingIntent。 這與通知的主要 Notification.contentIntent 不同,後者通常在通知被點選到主機裝置(例如手機)時觸發。

Android 參考資料。android.app.Notification.ProjectedExtender.setContentIntent

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於