Compartilhar via


FragmentHostCallback.OnStartActivityFromFragment Método

Definição

Inicia um novo Activity a partir do fragmento fornecido.

[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

Parâmetros

fragment
Fragment
intent
Intent
requestCode
Int32
options
Bundle
Atributos

Comentários

Inicia um novo Activity a partir do fragmento fornecido. Consulte Activity#startActivityForResult(Intent, int).

Documentação Java para android.app.FragmentHostCallback.onStartActivityFromFragment(android.app.Fragment, android.content.Intent, int, android.os.Bundle).

Partes desta página são modificações baseadas no trabalho criado e compartilhado pelo Android Open Source Project e usado de acordo com os termos descritos na Creative Commons 2.5 Attribution License.

Aplica-se a