Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
5分で完全理解するNav3との向き合い方
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Tomoki Yamashita
June 25, 2025
Technology
330
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
5分で完全理解するNav3との向き合い方
Tomoki Yamashita
June 25, 2025
More Decks by Tomoki Yamashita
See All by Tomoki Yamashita
ハードウェア連携が必要なプロダクトにおける自動テストの書き方
tomorrowkey
0
160
STORES_決済端末2ってAndroidなんでしょ__ほんとうかな__.pdf
tomorrowkey
0
83
モバイルとRubyとわたし
tomorrowkey
0
89
BiDiってなんだ?
tomorrowkey
2
820
文字列操作の達人になる ~ Kotlinの文字列の便利な世界 ~ - Kotlin fest 2025
tomorrowkey
2
2.1k
Ebisu mobile #11 - Predictive Backに対応する
tomorrowkey
1
180
AI協同時代にモバイルエンジニアが備えるべき開発環境の話
tomorrowkey
2
460
テストを楽に書きたい
tomorrowkey
2
460
Gradle Build Scanを使ってビルドのことを知ろう potatotips #87
tomorrowkey
2
1.5k
Other Decks in Technology
See All in Technology
AWSを利用する上で知っておきたい名前解決の話 2026
nagisa53
1
260
公共システムAdventCalendar2026
toru_kubota
0
150
コードレビューをなくして見えたもの
henteko
0
130
アクセラレーターで実現するServiceNow活用の高速化 / ServiceNow World Forum 2026
visional_engineering_and_design
0
130
Maestro MCPとClaude Code Skillsによる自律的なE2Eテスト支援
asmz
0
410
詳解 never 型 - ボトム型の性質を深掘り
nealle
0
150
AIで選択肢が広がった組織設計の理想と現実
konifar
16
7.7k
Flutter Webを「SDK」として配る — 50以上のゲームを支える埋め込みアーキテクチャ
masayukisuda
0
180
WireGuard for Apache NuttX - Bringing Secure Remote Access to embedded Devices -
aki310ooooo
0
140
The future of architectural work
ufried
0
150
`go get`したらELFが降ってきた件
taiyow
0
170
スマートロックを支えるFlutter × ネイティブ連携の実践 / Flutter and Native Integration in Practice: Powering Smart Locks
bitkey
PRO
0
150
Featured
See All Featured
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
3k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
740
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.4k
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
1k
SEO for Brand Visibility & Recognition
aleyda
0
4.8k
Designing for Performance
lara
612
70k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.9k
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
Practical Orchestrator
shlominoach
192
12k
Transcript
STORES 株式会社 5分で完全理解するNav3との向き合い方 Ebisu mobile #10 〜WWDC & Google I/O
スペシャル!〜 2025.06.26 @tomorrowkey
自己紹介
自己紹介 • 山下智樹 / @tomorrowkey • STORES株式会社 - STORES ブランドアプリ
• Android エンジニア 3
Nav3の話をしたい
Jetpack Navigationってなに • 画面遷移を実現するためのAndroidのライブラリ • NavigationはFragmentベースの時代に作られたライブラリであり、XMLに 画面の遷移先や引数を定義して、画面遷移を宣言的に書けるライブラリだっ た。 • Navigation
Composeの登場によりCompose時代でも画面遷移を定義できる ようになった。 5
Nav2のデメリット • Fragment時代に作られたライブラリなので、Jetpack Composeとの親和性 が完全ではなかった。 • バックスタックの管理がライブラリ任せであり、テクニカルな画面遷移を実装 しようとすると、高度な知識とワークアラウンドが必要となった。 • Nav2では画面をNavHostいっぱいに表示するため、TabletやFoldableなど画
面の大きさを活かしたレイアウトを表示をさせることが難しかった。 6
Nav3の誕生
たった2つのNav3のポイント You own the back stack バックスタックはただのListです。 その管理はライブラリではなく自分自身で所有し、コントロールします。 Get out
of your way どのようにナビゲーションしたいかは、開発者である自分自身が一番分かっている。 Nav3ではオープンで拡張可能なように設計されているため、そのアプリのユースケースに併せてカスタマイズが可能になりました。 8
サンプルコード val backStack = remember { mutableStateListOf<Any>(RouteA) } NavDisplay( backStack
= backStack, onBack = { backStack.removeLastOrNull() }, entryProvider = entryProvider { entry<RouteA> { ContentGreen("Welcome to Nav3") { Button(onClick = { backStack.add(RouteB("123")) }) { Text("Click to navigate") } } } entry<RouteB> { key -> ContentBlue("Route id: ${key.id} ") } } ) 9
Nav3はすべてを解決するのか • Nav3ではすべてのアプリのユースケースをカバーするアプローチではなく、 多くのユースケースをカバーするためのコンポーネントが提供されるように なった。 • 一見柔軟性が増えたように聞こえるが、これまでライブラリで管理されていた DeepLinkや状態の管理は開発者が行わないといけなくなった。 10
Nav3にどう立ち向かうか https://github.com/android/nav3-recipes によくあるユースケースのためのサ ンプルコードがあります。 - NavigationRail or NavigationBar - ログインを題材にした条件付き画面遷移
- Scenes を複雑なカスタムレイアウト - DeepLinks (まだコードはない) - Android XR Support (まだコードはない) - 画面間の戻り値 (まだコードはない) 11
これからのNav3に期待 - まだAlpha版なのでプロダクションユースは推奨されていません - 触ってみてフィードバックをIssue Trackerになげましょう 12
おわり
参考文献 - Android Developers Blog: Announcing Jetpack Navigation 3 https://android-developers.googleblog.com/2025/05/announcing-jetpack-navigation-3-for-compose.html
- android/nav3-recipes: Implement common use cases with Jetpack Navigation 3 https://github.com/android/nav3-recipes - Navigating the future with Jetpack Navigation 3 - Core Concepts - YouTube https://www.youtube.com/watch?v=opLYavQHBB8 14