Howard Tseng 7 лет назад
Родитель
Сommit
f5cc53043b

+ 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);
     }