7e2dc4f678a8b0d8a74bb6d8716258aa373e40fd |
|
12-Apr-2018 |
Ian Lake <ilake@google.com> |
Add ActivityNavigator to NavGraph DSL Adds the ability to create activity destinations in the NavGraph Kotlin DSL: navController.createGraph(startDestination = DEST_ID) { activity(DEST_ID) { activityClass = DetailActivity::class action = Intent.ACTION_VIEW data = "http://www.example.com".toUri() // Or dataPattern = "http://www.example.com/{id}" } } Test: new ktx tests BUG: 77536435 Change-Id: I74d128324c6a225ea58a2b802d1c9503ed09919b
/frameworks/support/navigation/runtime/ktx/src/main/java/androidx/navigation/ActivityNavigatorDestinationBuilder.kt
|