SeslFadingEdgeHelperImpl

AGSL RuntimeShader based fading edge renderer for SESL scrollable widgets.

Constructors

Link copied to clipboard
constructor(@NonNull context: @NonNull Context)

Types

Link copied to clipboard
Animates color change over time.
Link copied to clipboard
Identifies edge orientation and properties.
Link copied to clipboard
Holds the fading edge heights resolved from resources.
Link copied to clipboard
Animates fading edge height over time.

Functions

Link copied to clipboard
@NonNull
open fun createSeslFadingEdgeHelper(@NonNull context: @NonNull Context): @NonNull SeslFadingEdgeHelper
Link copied to clipboard
Forces the bottom fading edge height to a clamped value.
Link copied to clipboard
open fun forceTopFadingEdgeClamped(height: Int)
Forces the top fading edge height to a clamped value.
Link copied to clipboard
Link copied to clipboard
Returns the bottom offset for the fading edge.
Link copied to clipboard
Link copied to clipboard
open fun getRoundedCornerColor(@NonNull context: @NonNull Context): Int
Link copied to clipboard
Hides or shows the bottom fading edge.
Link copied to clipboard
open 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
open 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
open fun renderFadingEffect(@NonNull canvas: @NonNull 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
open fun setBottomFadingEdgeOverrides(@Nullable overrides: @Nullable SeslBottomFadingEdgeOverrides)
Sets bottom fading edge height and interpolator overrides.
Link copied to clipboard
open fun setFadingEdgeBottomOffset(offset: Int)
Sets the bottom offset for the fading edge.
Link copied to clipboard
open fun setFadingEdgeColor(@ColorInt color: Int)
Sets an overlay color for fading edges.
open fun setFadingEdgeColor(@ColorInt color: Int, @Nullable runnable: @Nullable Runnable)
Sets the color for fading edge rendering with an optional completion callback.
Link copied to clipboard
open fun setFadingEdgeEnabled(enabled: Boolean)
Enables or disables fading edge rendering.
open fun setFadingEdgeEnabled(enabled: Boolean, extendTop: Boolean, extendBottom: Boolean)
Enables or disables fading edge rendering with top/bottom extend flags.
open fun setFadingEdgeEnabled(enabled: Boolean, topHeight: Int, bottomHeight: Int)
Enables or disables fading edge rendering with specific top and bottom heights.
open 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
Sets whether legacy transfer mode should be forced.
Link copied to clipboard
open fun setTargetView(view: View)
Sets the target view for fading edge rendering.
Link copied to clipboard
open fun setTopFadingEdgeOverrides(@Nullable overrides: @Nullable SeslTopFadingEdgeOverrides)
Sets top fading edge height and interpolator overrides.
Link copied to clipboard
Sets whether the bottom fading edge should align to the window bottom.