語言

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。

傳回

此物件用於方法鏈結。 這個值不可能為零值。

屬性

備註

當電視上選擇通知時,會提供一份待定意圖(PendingIntent)。 若提供,則會取代通知層級所指定的內容意圖。

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

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

適用於