PendingIntent.GetBroadcast(Context, Int32, Intent, PendingIntentFlags) PendingIntent.GetBroadcast(Context, Int32, Intent, PendingIntentFlags) Method

Definition

Retrieve a PendingIntent that will perform a broadcast, like calling SendBroadcast(Intent).

[Android.Runtime.Register("getBroadcast", "(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;", "")]
public static Android.App.PendingIntent GetBroadcast (Android.Content.Context context, int requestCode, Android.Content.Intent intent, Android.App.PendingIntentFlags flags);
static member GetBroadcast : Android.Content.Context * int * Android.Content.Intent * Android.App.PendingIntentFlags -> Android.App.PendingIntent

Parameters

context
Context Context

The Context in which this PendingIntent should perform the broadcast.

requestCode
Int32 Int32

Private request code for the sender

intent
Intent Intent

The Intent to be broadcast.

flags
PendingIntentFlags PendingIntentFlags

May be Android.App.PendingIntent.FLAG_ONE_SHOT, Android.App.PendingIntent.FLAG_NO_CREATE, CancelCurrent, UpdateCurrent, or any of the flags as supported by FillIn(Intent, FillInFlags) to control which unspecified parts of the intent that can be supplied when the actual send happens.

Returns

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.

Applies to