ChooserSession.UpdateIntent(Intent) Method

Definition

Updates the chooser intent in an active Chooser session, causing Chooser to refresh its state and targets.

[Android.Runtime.Register("updateIntent", "(Landroid/content/Intent;)V", "", ApiSince=36)]
public void UpdateIntent(Android.Content.Intent intent);
[<Android.Runtime.Register("updateIntent", "(Landroid/content/Intent;)V", "", ApiSince=36)>]
member this.UpdateIntent : Android.Content.Intent -> unit

Parameters

intent
Intent

The new intent to apply to the session.

Attributes

Remarks

Updates the chooser intent in an active Chooser session, causing Chooser to refresh its state and targets.

Only updates to the following extras in the provided intent are respected: <ul> <li>Intent#EXTRA_INTENT</li> <li>Intent#EXTRA_EXCLUDE_COMPONENTS</li> <li>Intent#EXTRA_CHOOSER_TARGETS</li> <li>Intent#EXTRA_ALTERNATE_INTENTS</li> <li>Intent#EXTRA_REPLACEMENT_EXTRAS</li> <li>Intent#EXTRA_INITIAL_INTENTS</li> <li>Intent#EXTRA_CHOOSER_RESULT_INTENT_SENDER</li> <li>Intent#EXTRA_CHOOSER_REFINEMENT_INTENT_SENDER</li> </ul> This method is a no-op if the session is not in the #STATE_STARTED state.

Java documentation for android.service.chooser.ChooserSession.updateIntent(android.content.Intent).

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