requestImageRef method

  1. @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.')])
Future<RequestImageRefResult?> requestImageRef()

Requests the URL of the image last touched by the user.

Officially Supported Platforms/Implementations:

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',
  );
}