FragmentNavigator.Destination


@<Error class: unknown class>
open class FragmentNavigator.Destination

Known direct subclasses
DynamicFragmentNavigator.Destination

Destination for dynamic feature navigator.


NavDestination specific to FragmentNavigator

Construct a new fragment destination. This destination is not valid until you set the Fragment via setClassName.

Summary

Public constructors

Construct a new fragment destination.

Public functions

open operator Boolean
equals(other: Any?)
open Int
open Unit
FragmentNavigator.Destination
setClassName(className: String)

Set the Fragment class name associated with this destination

open String

Public properties

String

The Fragment's class name associated with this destination

Public constructors

Destination(
    fragmentNavigator: <Error class: unknown class><FragmentNavigator.Destination>
)
Parameters
fragmentNavigator: <Error class: unknown class><FragmentNavigator.Destination>

The FragmentNavigator which this destination will be associated with. Generally retrieved via a NavController's NavigatorProvider.getNavigator method.

Destination(navigatorProvider: <Error class: unknown class>)

Construct a new fragment destination. This destination is not valid until you set the Fragment via setClassName.

Parameters
navigatorProvider: <Error class: unknown class>

The NavController which this destination will be associated with.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

onInflate

@CallSuper
open fun onInflate(context: Context, attrs: AttributeSet): Unit

setClassName

Added in 1.0.0
fun setClassName(className: String): FragmentNavigator.Destination

Set the Fragment class name associated with this destination

Parameters
className: String

The class name of the Fragment to show when you navigate to this destination

toString

open fun toString(): String

Public properties

className

Added in 1.0.0
val classNameString

The Fragment's class name associated with this destination

Throws
kotlin.IllegalStateException

when no Fragment class was set.