| java.lang.Object | ||
| ↳ | android.app.FragmentContainer | |
| ↳ | android.app.FragmentHostCallback<E> | |
Integration points with the Fragment host.
Fragments may be hosted by any object; such as an Activity. In order to
host fragments, implement FragmentHostCallback, overriding the methods
applicable to the host.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Called when a
Fragment is being attached to this host, immediately
after the call to its onAttach(Context) method and before
onCreate(Bundle).
| |||||||||||
Print internal state into the given stream.
| |||||||||||
Return the view with the given resource ID.
| |||||||||||
Return the object that's currently hosting the fragment.
| |||||||||||
Return a
LayoutInflater.
| |||||||||||
Return the window animations.
| |||||||||||
Return
true if the container holds any view.
| |||||||||||
Return
true if there are window animations.
| |||||||||||
Invalidates the activity's options menu.
| |||||||||||
Requests permissions from the given fragment.
| |||||||||||
Return
true if the fragment's state needs to be saved.
| |||||||||||
Starts a new
Activity from the given fragment.
| |||||||||||
Return
true if the FragmentManager's LayoutInflaterFactory should be used.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.app.FragmentContainer
| |||||||||||
From class
java.lang.Object
| |||||||||||
Called when a Fragment is being attached to this host, immediately
after the call to its onAttach(Context) method and before
onCreate(Bundle).
Print internal state into the given stream.
| prefix | Desired prefix to prepend at each line of output. |
|---|---|
| fd | The raw file descriptor that the dump is being sent to. |
| writer | The PrintWriter to which you should dump your state. This will be closed for you after you return. |
| args | additional arguments to the dump request. |
Return the view with the given resource ID. May return null if the
view is not a child of this container.
Return the object that's currently hosting the fragment. If a Fragment
is hosted by a Activity, the object returned here should be the same
object returned from getActivity().
Return a LayoutInflater.
See getLayoutInflater().
Return true if there are window animations.
Invalidates the activity's options menu.
See invalidateOptionsMenu()
Requests permissions from the given fragment.
See requestPermissions(String[], int)
Return true if the fragment's state needs to be saved.
Starts a new Activity from the given fragment.
See startActivityForResult(Intent, int).
Return true if the FragmentManager's LayoutInflaterFactory should be used.