CanvasHoverEffect
(
initialPath
, initialX
, initialY
)
|
Signature
constructor(initialPath: Path, initialX: Float, initialY: Float) Parameters initialPath: PathinitialX: FloatinitialY: FloatReturns CanvasHoverEffect |
draw
(
canvas
)
|
Draws the effect to the canvas
Signature
open override fun draw(canvas: Canvas) Parameters canvas: Canvas |
onHover
(
x
, y
, outlinePath
)
|
Called when hover position or outline changes
Signature
open override fun onHover(x: Float, y: Float, outlinePath: Path) Parameters x: Floaty: FloatoutlinePath: Path |
onUnhover
()
|
Called when hover ends (triggers fade-out)
Signature
open override fun onUnhover() |
setOnRemove
(
onRemove
)
|
Sets the callback to invoke when the effect should be removed (after fade-out completes)
Signature
open override fun setOnRemove(onRemove: Runnable) Parameters onRemove: Runnable |
update
(
deltaTimeMs
)
|
Updates animation state. Called each frame.
Signature
open override fun update(deltaTimeMs: Long) Parameters deltaTimeMs: Long |