FragmentContainer


abstract class FragmentContainer

Known direct subclasses
FragmentHostCallback

Integration points with the Fragment host.


Callbacks to a Fragment's container.

Summary

Public constructors

Public functions

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

This function is deprecated.

Use setFragmentFactory to control how Fragments are instantiated.

abstract View?

Return the view with the given resource ID.

abstract Boolean

Return true if the container holds any view.

Public constructors

FragmentContainer

Added in 1.1.0
FragmentContainer()

Public functions

instantiate

Added in 1.1.0
Deprecated in 1.1.0
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 instantiate.

onFindViewById

Added in 1.1.0
abstract fun onFindViewById(id: @IdRes Int): View?

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

onHasView

Added in 1.1.0
abstract fun onHasView(): Boolean

Return true if the container holds any view.