Skip to content

Commit

Permalink
Merge pull request #50 from hotwired/android-native
Browse files Browse the repository at this point in the history
Update references for Android native and configuration
  • Loading branch information
jayohms authored Oct 22, 2024
2 parents 89fa339 + 1226242 commit cd450f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions _source/android/04_native_screens.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ First, create a URL path pattern and set its `uri` property. This path configura

When a link is intercepted by Hotwire Native, it will go through its usual process of matching the link's URL path to all rules in the app's Path Configuration. When it matches the above rule, it will propose a `visit` and resolve the matching `HotwireDestination` whose `uri` matches `"hotwire://fragment/numbers"`.

Create a new fragment and provide a matching `HotwireDestination` annotation.
Create a new fragment and provide a matching `HotwireDestinationDeepLink` annotation.

```kotlin
@HotwireDestination(uri = "hotwire://fragment/numbers")
@HotwireDestinationDeepLink(uri = "hotwire://fragment/numbers")
class NumbersFragment : HotwireFragment() {
// ...
}
Expand Down
2 changes: 1 addition & 1 deletion _source/android/05_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Hotwire.config.webViewDebuggingEnabled = BuildConfig.DEBUG
Set the default fragment destination:

```kotlin
Hotwire.defaultFragmentDestination = WebFragment::class
Hotwire.defaultFragmentDestination = HotwireWebFragment::class
```

Register fragment destinations:
Expand Down

0 comments on commit cd450f6

Please sign in to comment.