Lingua

FragmentManager.PutFragment(Bundle, String, Fragment) Metodo

Definizione

Inserire un riferimento a un frammento in un bundle.

[Android.Runtime.Register("putFragment", "(Landroid/os/Bundle;Ljava/lang/String;Landroid/app/Fragment;)V", "GetPutFragment_Landroid_os_Bundle_Ljava_lang_String_Landroid_app_Fragment_Handler")]
public abstract void PutFragment(Android.OS.Bundle? bundle, string? key, Android.App.Fragment? fragment);
[<Android.Runtime.Register("putFragment", "(Landroid/os/Bundle;Ljava/lang/String;Landroid/app/Fragment;)V", "GetPutFragment_Landroid_os_Bundle_Ljava_lang_String_Landroid_app_Fragment_Handler")>]
abstract member PutFragment : Android.OS.Bundle * string * Android.App.Fragment -> unit

Parametri

bundle
Bundle

Bundle in cui inserire il riferimento al frammento.

key
String

Nome della voce nel bundle.

fragment
Fragment

Frammento il cui riferimento deve essere archiviato.

Attributi

Commenti

Inserire un riferimento a un frammento in un bundle. Questo bundle può essere salvato in modo permanente e, in un secondo momento, il ripristino di getFragment(Bundle,String) restituirà l'istanza corrente dello stesso frammento.

Informazioni di riferimento su Android per android.app.FragmentManager.putFragment.

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a