Closed jayohms closed 3 years ago
To refresh a destination's contents, simply call refresh():
refresh()
class WebFragment : TurboWebFragment() { // ... private fun respondToNativeFeature() { // Refresh the WebView contents refresh() // Or, refresh the contents without displaying progress refresh(displayProgress = false) } }
To refresh the current destination from your Activity, use the delegate:
delegate
class MainActivity : AppCompatActivity(), TurboActivity { // ... private fun refreshAfterResumingApp() { delegate.currentNavDestination?.refresh() } }
Addresses https://github.com/hotwired/turbo-android/issues/137
To refresh a destination's contents, simply call
refresh()
:To refresh the current destination from your Activity, use the
delegate
:Addresses https://github.com/hotwired/turbo-android/issues/137