RemoteViews.SetOnClickPendingIntent(Int32, PendingIntent) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Equivalent to calling
android.view.View#setOnClickListener(android.view.View.OnClickListener)
to launch the provided 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
Parameters
- viewId
- Int32
The id of the view that will trigger the PendingIntent
when clicked
- pendingIntent
- PendingIntent
The PendingIntent
to send when user clicks
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.