Skip to content

Commit

Permalink
Merge pull request #3 from howardt12345/patch-1
Browse files Browse the repository at this point in the history
Added reloading (Android)
  • Loading branch information
howardt12345 authored Apr 8, 2018
2 parents 75840d1 + dbacbf8 commit 40bef2b
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ public void onMethodCall(MethodCall call, MethodChannel.Result result) {
case "resize":
resize(call, result);
break;
case "reload":
reload(call, result);
break;
default:
result.notImplemented();
break;
Expand Down Expand Up @@ -111,6 +114,11 @@ private void close(MethodCall call, MethodChannel.Result result) {
}
}

private void reload(MethodCall call, MethodChannel.Result result) {
if (webViewManager != null) {
webViewManager.reload(call, result);
}
}
private void eval(MethodCall call, final MethodChannel.Result result) {
if (webViewManager != null) {
webViewManager.eval(call, result);
Expand Down

0 comments on commit 40bef2b

Please sign in to comment.