requestImageRef method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'WebView.requestImageRef', apiUrl: 'https://developer.android.com/reference/android/webkit/WebView#requestImageRef(android.os.Message)'), IOSPlatform(note: 'This method is implemented using JavaScript.')])
Requests the URL of the image last touched by the user.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.requestImageRef)
- 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.requestImageRef',
apiUrl:
'https://developer.android.com/reference/android/webkit/WebView#requestImageRef(android.os.Message)',
),
IOSPlatform(note: 'This method is implemented using JavaScript.'),
],
)
Future<RequestImageRefResult?> requestImageRef() {
throw UnimplementedError(
'${PlatformInAppWebViewControllerMethod.requestImageRef.name} is not implemented on the current platform',
);
}