| permalink | order | title | description |
|---|---|---|---|
/android/reference.html |
6 |
Reference |
An reference guide to the Hotwire Native Android library. |
The Navigator is the central coordinator in a Hotwire Native Android application. Each NavigatorHost in your Activity maintains a Navigator instance, which manages the stack of HotwireFragment screens with a single, shared WebView instance. It lets your app choose how to handle link taps, present new screens, and deal with errors.
You can customize and subclass the HotwireWebView class to provide custom behaviors in your app:
Hotwire.config.makeCustomWebView = { context ->
MyCustomWebView(context, null)
}data-native-prevent-pull-to-refresh: Apply to any element in your web app whose touch events conflict with the native pull-to-refresh behavior in theWebView. By default, scrollable elements prevent pull-to-refresh, but you may need to apply this custom attribute to elements that have draggable or swipeable behaviors.