Skip to content

Commit 3fa200e

Browse files
authored
Merge pull request #2 from howardt12345/patch-2
Added reloading (Android)
2 parents 34f039a + 503c7f8 commit 3fa200e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

android/src/main/java/com/flutter_webview_plugin/WebviewManager.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,12 @@ public void onReceiveValue(String value) {
123123
});
124124
}
125125

126+
void reload(MethodCall call, MethodChannel.Result result) {
127+
if (webView != null) {
128+
webView.reload();
129+
}
130+
}
131+
126132
void resize(FrameLayout.LayoutParams params) {
127133
webView.setLayoutParams(params);
128134
}

0 commit comments

Comments
 (0)