forked from mash-up-kr/ssam-d-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat] mash-up-kr#111 Signal 보내기 화면 route 및 graph 생성
- Loading branch information
1 parent
5ebede5
commit 8f27f30
Showing
4 changed files
with
59 additions
and
1 deletion.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
...ation/src/main/java/com/mashup/presentation/feature/signal/navigation/SignalNavigation.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package com.mashup.presentation.feature.signal.navigation | ||
|
||
import androidx.navigation.NavController | ||
import androidx.navigation.NavGraphBuilder | ||
import androidx.navigation.NavOptions | ||
import androidx.navigation.compose.composable | ||
import androidx.navigation.navigation | ||
import com.mashup.presentation.navigation.KeyLinkNavigationRoute | ||
|
||
/** | ||
* Ssam_D_Android | ||
* @author jaesung | ||
* @created 2023/07/04 | ||
*/ | ||
fun NavController.navigateToSignalKeyword(navOptions: NavOptions? = null) { | ||
navigate( | ||
route = KeyLinkNavigationRoute.SignalGraph.SignalKeywordRoute.route, | ||
navOptions = navOptions | ||
) | ||
} | ||
|
||
fun NavController.navigateToSignalComplete(navOptions: NavOptions? = null) { | ||
navigate( | ||
route = KeyLinkNavigationRoute.SignalGraph.SignalCompleteRoute.route, | ||
navOptions = navOptions | ||
) | ||
} | ||
|
||
fun NavGraphBuilder.signalGraph() { | ||
navigation( | ||
route = KeyLinkNavigationRoute.SignalGraph.route, | ||
startDestination = KeyLinkNavigationRoute.SignalGraph.SignalContentRoute.route | ||
) { | ||
composable(route = KeyLinkNavigationRoute.SignalGraph.SignalContentRoute.route) { | ||
// SignalContentRoute | ||
} | ||
|
||
composable(route = KeyLinkNavigationRoute.SignalGraph.SignalKeywordRoute.route) { | ||
// SignalKeywordRoute | ||
} | ||
|
||
composable(route = KeyLinkNavigationRoute.SignalGraph.SignalCompleteRoute.route) { | ||
// SignalCompleteRoute | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters