SeslEdgeEffect

Samsung Edge Effect class.

Constructors

Link copied to clipboard
constructor(context: Context)
Construct a new EdgeEffect with a theme appropriate for the provided context.

Functions

Link copied to clipboard
open fun draw(canvas: Canvas): Boolean
Draw into the provided canvas.
Link copied to clipboard
open fun finish()
Immediately finish the current animation.
Link copied to clipboard
open fun getColor(): Int
Return the color of this edge effect in argb.
Link copied to clipboard
open fun getMaxHeight(): Int
Return the maximum height that the edge effect will be drawn at given the original input size.
Link copied to clipboard
open fun isFinished(): Boolean
Reports if this EdgeEffect's animation is finished.
Link copied to clipboard
open fun onAbsorb(velocity: Int)
Call when the effect absorbs an impact at the given velocity.
Link copied to clipboard
open fun onPull(deltaDistance: Float)
open fun onPull(deltaDistance: Float, displacement: Float)
A view should call this when content is pulled away from an edge by the user.
Link copied to clipboard
open fun onPullCallOnRelease(deltaDistance: Float, displacement: Float, delayTime: Int)
Link copied to clipboard
open fun onRelease()
Call when the object is released after being pulled.
Link copied to clipboard
open fun setColor(@ColorInt color: Int)
Set the color of this edge effect in argb.
Link copied to clipboard
open fun setHostView(hostView: View, canVerticalScroll: Boolean)
Link copied to clipboard
open fun setSize(width: Int, height: Int)
Set the size of this edge effect in pixels.