Android.App.PendingIntent.GetService Method
Retrieve a PendingIntent that will start a service, like calling Android.Content.Context.StartService(Android.Content.Intent).

Syntax

[Android.Runtime.Register("getService", "(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;", "")]
public static PendingIntent GetService (Android.Content.Context context, int requestCode, Android.Content.Intent intent, [Android.Runtime.GeneratedEnum] PendingIntentFlags flags)

Parameters

context
The Context in which this PendingIntent should start the service.
requestCode
Private request code for the sender
intent
An Intent describing the service to be started.
flags
May be PendingIntent.FLAG_ONE_SHOT, PendingIntent.FLAG_NO_CREATE, PendingIntent.FLAG_CANCEL_CURRENT, PendingIntent.FLAG_UPDATE_CURRENT, or any of the flags as supported by Android.Content.Intent.FillIn(Android.Content.Intent, Android.Content.FillInFlags) to control which unspecified parts of the intent that can be supplied when the actual send happens.

Returns

Documentation for this section has not yet been entered.

Remarks

Retrieve a PendingIntent that will start a service, like calling Android.Content.Context.StartService(Android.Content.Intent). The start arguments given to the service will come from the extras of the Intent.

For security reasons, the Android.Content.Intent you supply here should almost always be an explicit intent, that is specify an explicit component to be delivered to through Android.Content.Intent.setClass(android.content.Context, java.lang.Class<?>)

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1