Interface GeckoSession.ScrollDelegate

Enclosing class:
GeckoSession

public static interface GeckoSession.ScrollDelegate
GeckoSession applications implement this interface to handle content scroll events.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    onScrollChanged(GeckoSession session, int scrollX, int scrollY)
    The scroll position of the content has changed.
  • Method Details

    • onScrollChanged

      @UiThread default void onScrollChanged(@NonNull GeckoSession session, int scrollX, int scrollY)
      The scroll position of the content has changed.
      Parameters:
      session - GeckoSession that initiated the callback.
      scrollX - The new horizontal scroll position in pixels.
      scrollY - The new vertical scroll position in pixels.