onOverScrolled method

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'WebView.onOverScrolled', apiUrl: 'https://developer.android.com/reference/android/webkit/WebView#onOverScrolled(int,%20int,%20boolean,%20boolean)'), IOSPlatform()])
void onOverScrolled(
  1. int x,
  2. int y,
  3. bool clampedX,
  4. bool clampedY,
)

Event fired to respond to the results of an over-scroll operation.

x represents the new X scroll value in pixels.

y represents the new Y scroll value in pixels.

clampedX is true if x was clamped to an over-scroll boundary.

clampedY is true if y was clamped to an over-scroll boundary.

Officially Supported Platforms/Implementations:

Parameters - Officially Supported Platforms/Implementations:

  • x: all platforms
  • y: all platforms
  • clampedX: all platforms
  • clampedY: all platforms

Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.

Implementation

@SupportedPlatforms(
  platforms: [
    AndroidPlatform(
      apiName: 'WebView.onOverScrolled',
      apiUrl:
          'https://developer.android.com/reference/android/webkit/WebView#onOverScrolled(int,%20int,%20boolean,%20boolean)',
    ),
    IOSPlatform(),
  ],
)
void onOverScrolled(int x, int y, bool clampedX, bool clampedY) {}