mirror of
https://github.com/InsanusMokrassar/docs.git
synced 2024-11-22 08:13:59 +00:00
Update getting-started.md
This commit is contained in:
parent
6dc843337b
commit
fce4d336c0
@ -74,9 +74,9 @@ class MainNodeView(
|
|||||||
|
|
||||||
object MainNodeFactory : NavigationNodeFactory<NavigationNodeDefaultConfig> {
|
object MainNodeFactory : NavigationNodeFactory<NavigationNodeDefaultConfig> {
|
||||||
override fun createNode(
|
override fun createNode(
|
||||||
navigationChain: NavigationChain<Base>,
|
navigationChain: NavigationChain<NavigationNodeDefaultConfig>,
|
||||||
config: Base
|
config: NavigationNodeDefaultConfig
|
||||||
): NavigationNode<out Base, Base>? = if (config is MainConfig) {
|
): NavigationNode<out NavigationNodeDefaultConfig, NavigationNodeDefaultConfig>? = if (config is MainConfig) {
|
||||||
MainNode(config, navigationChain) // Or `MainNodeView(config, chain)` for MVVM
|
MainNode(config, navigationChain) // Or `MainNodeView(config, chain)` for MVVM
|
||||||
} else {
|
} else {
|
||||||
null
|
null
|
||||||
|
Loading…
Reference in New Issue
Block a user