FragmentHostCallback.OnStartActivityFromFragment Method

Definition

Starts a new Activity from the given fragment.

[Android.Runtime.Register("onStartActivityFromFragment", "(Landroid/app/Fragment;Landroid/content/Intent;ILandroid/os/Bundle;)V", "GetOnStartActivityFromFragment_Landroid_app_Fragment_Landroid_content_Intent_ILandroid_os_Bundle_Handler", ApiSince=23)]
public virtual void OnStartActivityFromFragment (Android.App.Fragment? fragment, Android.Content.Intent? intent, int requestCode, Android.OS.Bundle? options);
[<Android.Runtime.Register("onStartActivityFromFragment", "(Landroid/app/Fragment;Landroid/content/Intent;ILandroid/os/Bundle;)V", "GetOnStartActivityFromFragment_Landroid_app_Fragment_Landroid_content_Intent_ILandroid_os_Bundle_Handler", ApiSince=23)>]
abstract member OnStartActivityFromFragment : Android.App.Fragment * Android.Content.Intent * int * Android.OS.Bundle -> unit
override this.OnStartActivityFromFragment : Android.App.Fragment * Android.Content.Intent * int * Android.OS.Bundle -> unit

Parameters

fragment
Fragment
intent
Intent
requestCode
Int32
options
Bundle
Attributes

Remarks

Starts a new Activity from the given fragment. See Activity#startActivityForResult(Intent, int).

Java documentation for android.app.FragmentHostCallback.onStartActivityFromFragment(android.app.Fragment, android.content.Intent, int, android.os.Bundle).

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