ChooserManager.StartSession(Context, Intent) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Starts a new interactive Chooser session.
[Android.Runtime.Register("startSession", "(Landroid/content/Context;Landroid/content/Intent;)Landroid/service/chooser/ChooserSession;", "GetStartSession_Landroid_content_Context_Landroid_content_Intent_Handler", ApiSince=36)]
public virtual Android.Service.Chooser.ChooserSession StartSession(Android.Content.Context context, Android.Content.Intent chooserIntent);
[<Android.Runtime.Register("startSession", "(Landroid/content/Context;Landroid/content/Intent;)Landroid/service/chooser/ChooserSession;", "GetStartSession_Landroid_content_Context_Landroid_content_Intent_Handler", ApiSince=36)>]
abstract member StartSession : Android.Content.Context * Android.Content.Intent -> Android.Service.Chooser.ChooserSession
override this.StartSession : Android.Content.Context * Android.Content.Intent -> Android.Service.Chooser.ChooserSession
Parameters
- context
- Context
- chooserIntent
- Intent
an Intent#ACTION_CHOOSER intent that will be used as a base
for the new Chooser session.
<p>An interactive Chooser session also supports the following chooser parameters:
<ul>
<li>Intent#EXTRA_ALTERNATE_INTENTS</li>
<li>Intent#EXTRA_INITIAL_INTENTS</li>
<li>Intent#EXTRA_EXCLUDE_COMPONENTS</li>
<li>Intent#EXTRA_REPLACEMENT_EXTRAS</li>
<li>Intent#EXTRA_CHOOSER_TARGETS</li>
<li>Intent#EXTRA_CHOOSER_REFINEMENT_INTENT_SENDER</li>
<li>Intent#EXTRA_CHOOSER_RESULT_INTENT_SENDER</li>
<li>Intent#EXTRA_CHOSEN_COMPONENT_INTENT_SENDER</li>
</ul>
</p>
<p>See also Intent#createChooser(Intent, CharSequence) .</p>
Returns
- Attributes
Remarks
Starts a new interactive Chooser session. The method is idempotent and will start Chooser only once.
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.