Activity.StartNextMatchingActivity 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.
Overloads
StartNextMatchingActivity(Intent) |
Same as calling |
StartNextMatchingActivity(Intent, Bundle) |
Special version of starting an activity, for use when you are replacing other activity components. |
StartNextMatchingActivity(Intent)
Same as calling #startNextMatchingActivity(Intent, Bundle)
with
no options.
[Android.Runtime.Register("startNextMatchingActivity", "(Landroid/content/Intent;)Z", "GetStartNextMatchingActivity_Landroid_content_Intent_Handler")]
public virtual bool StartNextMatchingActivity (Android.Content.Intent intent);
[<Android.Runtime.Register("startNextMatchingActivity", "(Landroid/content/Intent;)Z", "GetStartNextMatchingActivity_Landroid_content_Intent_Handler")>]
abstract member StartNextMatchingActivity : Android.Content.Intent -> bool
override this.StartNextMatchingActivity : Android.Content.Intent -> bool
Parameters
- intent
- Intent
The intent to dispatch to the next activity. For correct behavior, this must be the same as the Intent that started your own activity; the only changes you can make are to the extras inside of it.
Returns
Returns a boolean indicating whether there was another Activity to start: true if there was a next activity to start, false if there wasn't. In general, if true is returned you will then want to call finish() on yourself.
- Attributes
Remarks
Same as calling #startNextMatchingActivity(Intent, Bundle)
with no options.
Java documentation for android.app.Activity.startNextMatchingActivity(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
StartNextMatchingActivity(Intent, Bundle)
Special version of starting an activity, for use when you are replacing other activity components.
[Android.Runtime.Register("startNextMatchingActivity", "(Landroid/content/Intent;Landroid/os/Bundle;)Z", "GetStartNextMatchingActivity_Landroid_content_Intent_Landroid_os_Bundle_Handler")]
public virtual bool StartNextMatchingActivity (Android.Content.Intent intent, Android.OS.Bundle? options);
[<Android.Runtime.Register("startNextMatchingActivity", "(Landroid/content/Intent;Landroid/os/Bundle;)Z", "GetStartNextMatchingActivity_Landroid_content_Intent_Landroid_os_Bundle_Handler")>]
abstract member StartNextMatchingActivity : Android.Content.Intent * Android.OS.Bundle -> bool
override this.StartNextMatchingActivity : Android.Content.Intent * Android.OS.Bundle -> bool
Parameters
- intent
- Intent
The intent to dispatch to the next activity. For correct behavior, this must be the same as the Intent that started your own activity; the only changes you can make are to the extras inside of it.
- options
- Bundle
Additional options for how the Activity should be started.
See android.content.Context#startActivity(Intent, Bundle)
Context.startActivity(Intent, Bundle)} for more details.
Returns
Returns a boolean indicating whether there was another Activity to start: true if there was a next activity to start, false if there wasn't. In general, if true is returned you will then want to call finish() on yourself.
- Attributes
Remarks
Special version of starting an activity, for use when you are replacing other activity components. You can use this to hand the Intent off to the next Activity that can handle it. You typically call this in #onCreate
with the Intent returned by #getIntent
.
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.