java.lang.Object | ||
↳ | android.support.v4.app.FragmentContainer | |
↳ | android.support.v4.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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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.
| |||||||||||
Requests permissions from the given fragment.
| |||||||||||
Return
true if the fragment's state needs to be saved.
| |||||||||||
Checks wehter to show permission rationale UI from a fragment.
| |||||||||||
Starts a new
Activity from the given fragment.
| |||||||||||
Invalidates the activity's options menu.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.support.v4.app.FragmentContainer
| |||||||||||
From class
java.lang.Object
|
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 FragmentActivity
, the object returned here should be
the same object returned from getActivity()
.
Return the window animations.
Return true
if the container holds any view.
Return true
if there are window animations.
Requests permissions from the given fragment.
See requestPermissions(String[], int)
Return true
if the fragment's state needs to be saved.
Checks wehter to show permission rationale UI from a fragment.
See shouldShowRequestPermissionRationale(String)
Starts a new Activity
from the given fragment.
See startActivityForResult(Intent, int)
.
Invalidates the activity's options menu.
See supportInvalidateOptionsMenu()