RemoteViews.SetPendingIntentTemplate(Int32, PendingIntent) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
使用集合(例如,
[Android.Runtime.Register("setPendingIntentTemplate", "(ILandroid/app/PendingIntent;)V", "GetSetPendingIntentTemplate_ILandroid_app_PendingIntent_Handler")]
public virtual void SetPendingIntentTemplate(int viewId, Android.App.PendingIntent? pendingIntentTemplate);
[<Android.Runtime.Register("setPendingIntentTemplate", "(ILandroid/app/PendingIntent;)V", "GetSetPendingIntentTemplate_ILandroid_app_PendingIntent_Handler")>]
abstract member SetPendingIntentTemplate : int * Android.App.PendingIntent -> unit
override this.SetPendingIntentTemplate : int * Android.App.PendingIntent -> unit
參數
- viewId
- Int32
點擊該集合的子群組 ID 會使用此 PendingIntent 範本
- pendingIntentTemplate
- PendingIntent
PendingIntent與 viewID 子節點指定的額外功能合併,當該子節點被點擊時執行
- 屬性
備註
Java 文件 android.widget.RemoteViews.setPendingIntentTemplate(int, android.app.PendingIntent)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。