Android Guides | Samples

Android.Content.IntentSender Class

A description of an Intent and target action to perform with it.

See Also: IntentSender

Syntax

[Android.Runtime.Register("android/content/IntentSender", DoNotGenerateAcw=true)]
public class IntentSender : Object, IParcelable, IDisposable

Remarks

A description of an Intent and target action to perform with it. The returned object can be handed to other applications so that they can perform the action you described on your behalf at a later time.

By giving a IntentSender to another application, you are granting it the right to perform the operation you have specified as if the other application was yourself (with the same permissions and identity). As such, you should be careful about how you build the IntentSender: often, for example, the base Intent you supply will have the component name explicitly set to one of your own components, to ensure it is ultimately sent there and nowhere else.

A IntentSender itself is simply a reference to a token maintained by the system describing the original data used to retrieve it. This means that, even if its owning application's process is killed, the IntentSender itself will remain usable from other processes that have been given it. If the creating application later re-retrieves the same kind of IntentSender (same operation, same Intent action, data, categories, and components, and same flags), it will receive a IntentSender representing the same token if that is still valid.

Instances of this class can not be made directly, but rather must be created from an existing PendingIntent with PendingIntent.IntentSender.

[Android Documentation]

Requirements

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

The members of Android.Content.IntentSender are listed below.

See Also: Object

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
static
CreatorIParcelableCreator.
[read-only]
CreatorPackageString. Return the package name of the application that created this IntentSender, that is the identity under which you will actually be sending the Intent.
[read-only]
CreatorUidInt32. Return the uid of the application that created this PendingIntent, that is the identity under which you will actually be sending the Intent.
[read-only]
CreatorUserHandleUserHandle. Return the user handle of the application that created this PendingIntent, that is the user under which you will actually be sending the Intent.
[read-only]
TargetPackageString.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

DescribeContents() : Int32
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
static
ReadIntentSenderOrNullFromParcel(Parcel) : IntentSender
Convenience function for reading either a Messenger or null pointer from a Parcel.
SendIntent(Context, Result, Intent, IntentSender+IOnFinished, Handler)
Perform the operation associated with this IntentSender, allowing the caller to specify information about the Intent to use and be notified when the send has completed.
SendIntent(Context, Result, Intent, IntentSender+IOnFinished, Handler, String)
Perform the operation associated with this IntentSender, allowing the caller to specify information about the Intent to use and be notified when the send has completed.
static
WriteIntentSenderOrNullToParcel(IntentSender, Parcel)
Convenience function for writing either a IntentSender or null pointer to a Parcel.
WriteToParcel(Parcel, ParcelableWriteFlags)
Flatten this object in to a Parcel.