Slide 1

Slide 1 text

2023.06.20 ਆݪ ݈Ұ (@korodroid) Wear OS Latest Topic 
 & Improving Wear OS App Usability potatotips #82

Slide 2

Slide 2 text

2 About me Kenichi Kambara (@korodroid) •Mobile App Development •Speeches (e.g. 15 Int’l Confs.) •Writings (e.g. 8 Dev Books) •Principal Evangelist at NTT TechnoCross •[Private]

Slide 3

Slide 3 text

Recent Activity (Overseas) Droidcon SF 2023@San Francisco (Speech)

Slide 4

Slide 4 text

Wear OS Overview Noti fi cation Complication Based on Android & optimized for the wrist Tile App

Slide 5

Slide 5 text

Wear OS Topics from I/O 2023 Watch Face Format Watch Face Studio Tile (Animation)

Slide 6

Slide 6 text

Wear OS ΞϓϦ։ൃೖ໳ with Jetpack Compose Improving Wear OS App Usability

Slide 7

Slide 7 text

Creating an App Noti fi cation Complication Tile App

Slide 8

Slide 8 text

Sample App 8

Slide 9

Slide 9 text

Looks good, but to make it better… 9

Slide 10

Slide 10 text

Adding a Tile feature Noti fi cation Complication Provide easier access to this app Tile App +

Slide 11

Slide 11 text

Implementing a Tile feature class MainTileService : CoroutinesTileService() { // Abbreviates some procedures, such as reading data from the repository
 override suspend fun resourcesRequest( requestParams: RequestBuilders.ResourcesRequest ): ResourceBuilders.Resources { return ResourceBuilders.Resources.Builder().setVersion(RESOURCES_VERSION).build() } override suspend fun tileRequest( requestParams: RequestBuilders.TileRequest ): TileBuilders.Tile { val singleTileTimeline = TimelineBuilders.Timeline.Builder().addTimelineEntry( TimelineBuilders.TimelineEntry.Builder().setLayout( LayoutElementBuilders.Layout.Builder().setRoot(tileLayout(this)).build() ).build() ).build() return TileBuilders.Tile.Builder().setResourcesVersion(RESOURCES_VERSION) .setTimeline(singleTileTimeline).build() } } a Kotlin coroutine-friendly wrapper 
 from the Horologist Tiles library /MainTileService.kt

Slide 12

Slide 12 text

Adding a Tile de fi nition 

Slide 13

Slide 13 text

That’s all! Can show the last contact easily. 13

Slide 14

Slide 14 text

Tips💡 Useful features for Wear OS

Slide 15

Slide 15 text

Please let me know if you have any requests 
 such as technical speeches, technical writings and so on. Facebook: Twitter:@korodroid LinkedIn: Thank you so much