August 2025
Intermediate to advanced
270 pages
6h 16m
English
Get started by opening Android Studio and creating a new package under com.masilotti.hikingjournal and name it components. Inside that package, create a new Kotlin file and name it ButtonComponent.
Inside this file, declare a BridgeComponent subclass named ButtonComponent.
| | package com.masilotti.hikingjournal.components |
| | |
| | import dev.hotwire.core.bridge.BridgeComponent |
| | import dev.hotwire.core.bridge.BridgeDelegate |
| | import dev.hotwire.navigation.destinations.HotwireDestination |
| | |
| | class ButtonComponent( |
| | name: String, |
| | private val bridgeDelegate: BridgeDelegate<HotwireDestination> |
| | ) : BridgeComponent<HotwireDestination>(name, ... |
Read now
Unlock full access