Browse Source

Merge pull request #2 from howardt12345/patch-2

Added reloading (Android)
Howard Tseng 7 years ago
parent
commit
75840d13c0

+ 6 - 0
android/src/main/java/com/flutter_webview_plugin/WebviewManager.java

@@ -123,6 +123,12 @@ class WebviewManager {
         });
     }
 
+    void reload(MethodCall call, MethodChannel.Result result) {
+        if (webView != null) {
+            webView.reload();
+        }
+    }
+
     void resize(FrameLayout.LayoutParams params) {
         webView.setLayoutParams(params);
     }