Now it's possible to hide/show the Webview. Previously the only option is to destroy and initiate another, especially on Android.
For Gio, it could be used together with the BackButton:
case *system.CommandEvent:
if e.Type == system.CommandBack {
if webview != nil {
webview.SetVisibility(gowebview.VisibilityMinimized)
}
}
That doesn't destroys the Webview, just set the View back to the Gio. You can, later on, set the webview.SetVisibility(gowebview.VisibilityMaximized) to go back to the Webview. The Webview will resume without any reload.
Now it's possible to hide/show the Webview. Previously the only option is to destroy and initiate another, especially on Android.
For Gio, it could be used together with the
BackButton
:That doesn't destroys the Webview, just set the View back to the Gio. You can, later on, set the
webview.SetVisibility(gowebview.VisibilityMaximized)
to go back to the Webview. The Webview will resume without any reload.