FragmentContainer

abstract class FragmentContainer
kotlin.Any
   ↳ androidx.fragment.app.FragmentContainer

Callbacks to a Fragment's container.

Summary

Public constructors

Public methods
abstract Boolean

Return true if the container holds any view.

open Fragment!
instantiate(context: Context!, className: String!, arguments: Bundle!)

Creates an instance of the specified fragment, can be overridden to construct fragments with dependencies, or change the fragment being constructed.

abstract View?

Return the view with the given resource ID.

Public constructors

<init>

FragmentContainer()

Public methods

onHasView

abstract fun onHasView(): Boolean

Return true if the container holds any view.

instantiate

open fun instantiate(context: Context!, className: String!, arguments: Bundle!): Fragment!

Creates an instance of the specified fragment, can be overridden to construct fragments with dependencies, or change the fragment being constructed. By default just calls Fragment#instantiate(Context, String, Bundle).

onFindViewById

abstract fun onFindViewById(id: Int): View?

Return the view with the given resource ID. May return null if the view is not a child of this container.