The Android Developer Challenge is back! Submit your idea before December 2.

DialogFragmentNavigator

class DialogFragmentNavigator : Navigator<DialogFragmentNavigator.Destination!>
kotlin.Any
   ↳ androidx.navigation.Navigator<androidx.navigation.fragment.DialogFragmentNavigator.Destination>
   ↳ androidx.navigation.fragment.DialogFragmentNavigator

Navigator that uses DialogFragment#show(FragmentManager, String). Every destination using this Navigator must set a valid DialogFragment class name with android:name or Destination#setClassName(String).

Summary

Nested classes

NavDestination specific to DialogFragmentNavigator.

Public constructors

<init>(@NonNull context: Context, @NonNull manager: FragmentManager)

Public methods

DialogFragmentNavigator.Destination

NavDestination?
navigate(@NonNull destination: DialogFragmentNavigator.Destination, @Nullable args: Bundle?, @Nullable navOptions: NavOptions?, @Nullable navigatorExtras: Navigator.Extras?)

Unit
onRestoreState(@Nullable savedState: Bundle!)

Bundle?

Boolean

Public constructors

<init>

DialogFragmentNavigator(@NonNull context: Context, @NonNull manager: FragmentManager)

Public methods

createDestination

@NonNull fun createDestination(): DialogFragmentNavigator.Destination

navigate

@Nullable fun navigate(@NonNull destination: DialogFragmentNavigator.Destination, @Nullable args: Bundle?, @Nullable navOptions: NavOptions?, @Nullable navigatorExtras: Navigator.Extras?): NavDestination?

onRestoreState

fun onRestoreState(@Nullable savedState: Bundle!): Unit

onSaveState

@Nullable fun onSaveState(): Bundle?

popBackStack

fun popBackStack(): Boolean