canGoForward method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'WebView.canGoForward', apiUrl: 'https://developer.android.com/reference/android/webkit/WebView#canGoForward()'), IOSPlatform(apiName: 'WKWebView.canGoForward', apiUrl: 'https://developer.apple.com/documentation/webkit/wkwebview/1414962-cangoforward'), MacOSPlatform(apiName: 'WKWebView.canGoForward', apiUrl: 'https://developer.apple.com/documentation/webkit/wkwebview/1414962-cangoforward'), WindowsPlatform(apiName: 'ICoreWebView2.get_CanGoForward', apiUrl: 'https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2?view=webview2-1.0.2210.55#get_cangoforward'), LinuxPlatform(apiName: 'webkit_web_view_can_go_forward', apiUrl: 'https://wpewebkit.org/reference/stable/wpe-webkit-2.0/method.WebView.can_go_forward.html')])
Returns a boolean value indicating whether the WebView can move forward.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.canGoForward)
- iOS WKWebView (Official API - WKWebView.canGoForward)
- macOS WKWebView (Official API - WKWebView.canGoForward)
- Windows WebView2 (Official API - ICoreWebView2.get_CanGoForward)
- Linux WPE WebKit (Official API - webkit_web_view_can_go_forward)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(
apiName: 'WebView.canGoForward',
apiUrl:
'https://developer.android.com/reference/android/webkit/WebView#canGoForward()',
),
IOSPlatform(
apiName: 'WKWebView.canGoForward',
apiUrl:
'https://developer.apple.com/documentation/webkit/wkwebview/1414962-cangoforward',
),
MacOSPlatform(
apiName: 'WKWebView.canGoForward',
apiUrl:
'https://developer.apple.com/documentation/webkit/wkwebview/1414962-cangoforward',
),
WindowsPlatform(
apiName: 'ICoreWebView2.get_CanGoForward',
apiUrl:
'https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2?view=webview2-1.0.2210.55#get_cangoforward',
),
LinuxPlatform(
apiName: 'webkit_web_view_can_go_forward',
apiUrl:
'https://wpewebkit.org/reference/stable/wpe-webkit-2.0/method.WebView.can_go_forward.html',
),
],
)
Future<bool> canGoForward() {
throw UnimplementedError(
'${PlatformInAppWebViewControllerMethod.canGoForward.name} is not implemented on the current platform',
);
}