onVerticalScrollEvent method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'EngagementSignalsCallback.onVerticalScrollEvent', apiUrl: 'https://developer.android.com/reference/androidx/browser/customtabs/EngagementSignalsCallback#onVerticalScrollEvent(boolean,android.os.Bundle)')])
- bool isDirectionUp
Called when a user scrolls the tab.
isDirectionUp - false when the user scrolls farther down the page,
and true when the user scrolls back up toward the top of the page.
NOTE: available only if PlatformChromeSafariBrowser.isEngagementSignalsApiAvailable returns true.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - EngagementSignalsCallback.onVerticalScrollEvent)
Parameters - Officially Supported Platforms/Implementations:
isDirectionUp: all platforms
Use the PlatformChromeSafariBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(
apiName: 'EngagementSignalsCallback.onVerticalScrollEvent',
apiUrl:
'https://developer.android.com/reference/androidx/browser/customtabs/EngagementSignalsCallback#onVerticalScrollEvent(boolean,android.os.Bundle)',
),
],
)
void onVerticalScrollEvent(bool isDirectionUp) {}