ClipData.Item.Builder.SetIntentSender(IntentSender) Method

Definition

Sets the IntentSender for the item to be constructed. To prevent receiving apps from improperly manipulating the intent to launch another activity as this caller, the provided IntentSender must be immutable. If there is a fixed lifetime for this ClipData (ie. for drag and drop), the system will cancel the IntentSender when it is no longer used.

[Android.Runtime.Register("setIntentSender", "(Landroid/content/IntentSender;)Landroid/content/ClipData$Item$Builder;", "", ApiSince=35)]
public Android.Content.ClipData.Item.Builder SetIntentSender(Android.Content.IntentSender? intentSender);
[<Android.Runtime.Register("setIntentSender", "(Landroid/content/IntentSender;)Landroid/content/ClipData$Item$Builder;", "", ApiSince=35)>]
member this.SetIntentSender : Android.Content.IntentSender -> Android.Content.ClipData.Item.Builder

Parameters

intentSender
IntentSender

This value may be null .

Returns

This value cannot be null .

Attributes

Remarks

Sets the IntentSender for the item to be constructed. To prevent receiving apps from improperly manipulating the intent to launch another activity as this caller, the provided IntentSender must be immutable. If there is a fixed lifetime for this ClipData (ie. for drag and drop), the system will cancel the IntentSender when it is no longer used.

Java documentation for android.content.ClipData.Item.Builder.setIntentSender(android.content.IntentSender).

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