RemoteViews.SetOnClickPendingIntent(Int32, PendingIntent) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
等同於呼叫
android.view.View#setOnClickListener(android.view.View.OnClickListener) 以啟動提供的 PendingIntent。
[Android.Runtime.Register("setOnClickPendingIntent", "(ILandroid/app/PendingIntent;)V", "GetSetOnClickPendingIntent_ILandroid_app_PendingIntent_Handler")]
public virtual void SetOnClickPendingIntent(int viewId, Android.App.PendingIntent? pendingIntent);
[<Android.Runtime.Register("setOnClickPendingIntent", "(ILandroid/app/PendingIntent;)V", "GetSetOnClickPendingIntent_ILandroid_app_PendingIntent_Handler")>]
abstract member SetOnClickPendingIntent : int * Android.App.PendingIntent -> unit
override this.SetOnClickPendingIntent : int * Android.App.PendingIntent -> unit
參數
- viewId
- Int32
點擊時會觸發的 PendingIntent 視圖 ID
- pendingIntent
- PendingIntent
PendingIntent使用者點擊時發送
- 屬性
備註
Java 文件 android.widget.RemoteViews.setOnClickPendingIntent(int, android.app.PendingIntent)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。