added in version 24.1.0
belongs to Maven artifact com.android.support:support-fragment:28.0.0-alpha1

FragmentHostCallback

public abstract class FragmentHostCallback
extends FragmentContainer

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.

Summary

Public constructors

FragmentHostCallback(Context context, Handler handler, int windowAnimations)

Public methods

void onDump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args)

Print internal state into the given stream.

View onFindViewById(int id)

Return the view with the given resource ID.

abstract E onGetHost()

Return the object that's currently hosting the fragment.

LayoutInflater onGetLayoutInflater()

Return a LayoutInflater.

int onGetWindowAnimations()

Return the window animations.

boolean onHasView()

Return true if the container holds any view.

boolean onHasWindowAnimations()

Return true if there are window animations.

void onRequestPermissionsFromFragment(Fragment fragment, String[] permissions, int requestCode)

Requests permissions from the given fragment.

boolean onShouldSaveFragmentState(Fragment fragment)

Return true if the fragment's state needs to be saved.

boolean onShouldShowRequestPermissionRationale(String permission)

Checks whether to show permission rationale UI from a fragment.

void onStartActivityFromFragment(Fragment fragment, Intent intent, int requestCode, Bundle options)

Starts a new Activity from the given fragment.

void onStartActivityFromFragment(Fragment fragment, Intent intent, int requestCode)

Starts a new Activity from the given fragment.

void onStartIntentSenderFromFragment(Fragment fragment, IntentSender intent, int requestCode, Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags, Bundle options)

Starts a new IntentSender from the given fragment.

void onSupportInvalidateOptionsMenu()

Invalidates the activity's options menu.

Inherited methods