requestFocusNodeHref method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'WebView.requestFocusNodeHref', apiUrl: 'https://developer.android.com/reference/android/webkit/WebView#requestFocusNodeHref(android.os.Message)'), IOSPlatform(note: 'This method is implemented using JavaScript.')])
Requests the anchor or image element URL at the last tapped point.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.requestFocusNodeHref)
- iOS WKWebView:
- This method is implemented using JavaScript.
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(
apiName: 'WebView.requestFocusNodeHref',
apiUrl:
'https://developer.android.com/reference/android/webkit/WebView#requestFocusNodeHref(android.os.Message)',
),
IOSPlatform(note: 'This method is implemented using JavaScript.'),
],
)
Future<RequestFocusNodeHrefResult?> requestFocusNodeHref() {
throw UnimplementedError(
'${PlatformInAppWebViewControllerMethod.requestFocusNodeHref.name} is not implemented on the current platform',
);
}