-
public abstract class DestinationStyleControls how the destination is shown when navigated to and navigated away from. You can pass the KClass of an implementation to the com.ramcosta.composedestinations.annotation.Destination.style.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classDestinationStyle.DefaultThis is the default style used in case none is specified for a given Destination.
Its animations will be inherited from the ones set at the navigation graph level, using
@NavGraph(defaultTransitions = SomeClass::class), if the destination belongs to a graph defined this way, or the com.ramcosta.composedestinations.DestinationsNavHost'sdefaultTransitionsparameter for the top level "NavHost Graph".public abstract classDestinationStyle.AnimatedMarks the destination to have defined enter/exit transitions when coming from or going to certain destinations.
You will need to create an object which implements this interface and use its KClass in com.ramcosta.composedestinations.annotation.Destination.style
public abstract classDestinationStyle.DialogMarks the destination to be shown as a dialog.
You can create implementations that define specific DialogProperties or you can use the default values with
style = DestinationStyle.Dialog::classpublic classDestinationStyle.Activity
-
Constructor Summary
Constructors Constructor Description DestinationStyle()
-
Method Summary
Modifier and Type Method Description abstract <T extends Any> UnitaddComposable(NavGraphBuilder $self, TypedDestinationSpec<T> destination, NavHostController navController, Function1<DependenciesContainerBuilder<?>, Unit> dependenciesContainerBuilder, ManualComposableCalls manualComposableCalls)-
-
Method Detail
-
addComposable
abstract <T extends Any> Unit addComposable(NavGraphBuilder $self, TypedDestinationSpec<T> destination, NavHostController navController, Function1<DependenciesContainerBuilder<?>, Unit> dependenciesContainerBuilder, ManualComposableCalls manualComposableCalls)
-
-
-
-