|
@@ -120,20 +120,26 @@ public class FlutterWebviewPlugin implements MethodCallHandler {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Navigates back on the Webview.
|
|
|
|
|
+ */
|
|
|
private void back(MethodCall call, MethodChannel.Result result) {
|
|
private void back(MethodCall call, MethodChannel.Result result) {
|
|
|
if (webViewManager != null) {
|
|
if (webViewManager != null) {
|
|
|
webViewManager.back(call, result);
|
|
webViewManager.back(call, result);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Navigates forward on the Webview.
|
|
|
|
|
+ */
|
|
|
private void forward(MethodCall call, MethodChannel.Result result) {
|
|
private void forward(MethodCall call, MethodChannel.Result result) {
|
|
|
if (webViewManager != null) {
|
|
if (webViewManager != null) {
|
|
|
webViewManager.forward(call, result);
|
|
webViewManager.forward(call, result);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Reloads the Webview.
|
|
|
|
|
+ */
|
|
|
private void reload(MethodCall call, MethodChannel.Result result) {
|
|
private void reload(MethodCall call, MethodChannel.Result result) {
|
|
|
if (webViewManager != null) {
|
|
if (webViewManager != null) {
|
|
|
webViewManager.reload(call, result);
|
|
webViewManager.reload(call, result);
|