SeslFadingEdgeHelper

Contract for AGSL-based fading edge rendering used by SESL scrollable widgets.

Inheritors

Types

Link copied to clipboard
Provides scroll information to SeslFadingEdgeHelperImpl for computing fading edge heights.

Functions

Link copied to clipboard
Forces the bottom fading edge height to a clamped value.
Link copied to clipboard
abstract fun forceTopFadingEdgeClamped(height: Int)
Forces the top fading edge height to a clamped value.
Link copied to clipboard
Returns the bottom offset for the fading edge.
Link copied to clipboard
abstract fun hideBottomFadingEdge(z: Boolean)
Hides or shows the bottom fading edge.
Link copied to clipboard
abstract fun hideTopFadingEdge(hide: Boolean)
Hides or shows the top fading edge.
Link copied to clipboard
Returns whether fading edge rendering is enabled.
Link copied to clipboard
abstract fun prepareFadingEffect(canvas: Canvas, left: Int, top: Int, right: Int, bottom: Int)
Prepares canvas layer clipping/saving before drawing fading edge effect.
Link copied to clipboard
abstract fun renderFadingEffect(canvas: Canvas, scrollInfoProvider: SeslFadingEdgeHelper.ScrollInfoProvider)
Renders the fading edge effect onto the canvas using scroll info from the provider.
Link copied to clipboard
Sets whether top fading edge is allowed when edge-to-edge mode is not active.
Link copied to clipboard
abstract fun setBottomFadingEdgeOverrides(seslBottomFadingEdgeOverrides: SeslBottomFadingEdgeOverrides)
Sets bottom fading edge height and interpolator overrides.
Link copied to clipboard
abstract fun setFadingEdgeBottomOffset(offset: Int)
Sets the bottom offset for the fading edge.
Link copied to clipboard
abstract fun setFadingEdgeColor(@ColorInt color: Int)
Sets an overlay color for fading edges.
abstract fun setFadingEdgeColor(@ColorInt color: Int, runnable: Runnable)
Sets the color for fading edge rendering with an optional completion callback.
Link copied to clipboard
abstract fun setFadingEdgeEnabled(enabled: Boolean)
Enables or disables fading edge rendering.
abstract fun setFadingEdgeEnabled(enabled: Boolean, extendTop: Boolean, extendBottom: Boolean)
Enables or disables fading edge rendering with top/bottom extend flags.
abstract fun setFadingEdgeEnabled(enabled: Boolean, topHeight: Int, bottomHeight: Int)
Enables or disables fading edge rendering with specific top and bottom heights.
abstract fun setFadingEdgeEnabled(enabled: Boolean, topHeight: Int, bottomHeight: Int, unused: Boolean)
Enables or disables fading edge rendering with specific heights and unused flag.
Link copied to clipboard
abstract fun setForceLegacyXfermode(force: Boolean)
Sets whether legacy transfer mode should be forced.
Link copied to clipboard
abstract fun setTargetView(view: View)
Sets the target view for fading edge rendering.
Link copied to clipboard
abstract fun setTopFadingEdgeOverrides(seslTopFadingEdgeOverrides: SeslTopFadingEdgeOverrides)
Sets top fading edge height and interpolator overrides.
Link copied to clipboard
abstract fun setWindowBottomAlignment(align: Boolean)
Sets whether the bottom fading edge should align to the window bottom.