getHitTestResult method
Gets the hit result for hitting an HTML elements.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.getHitTestResult)
- iOS WKWebView:
- This method is implemented using JavaScript.
- Linux WPE WebKit (Official API - WebKitHitTestResult):
- This method uses native WebKitHitTestResult from the mouse-target-changed signal.
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<InAppWebViewHitTestResult?> getHitTestResult() =>
platform.getHitTestResult();