API reference
API reference
Select your platform
No SDKs available
No versions available

IHoverEffect Interface

Interface for hover effect implementations.
Each hover effect manages its own state, animation, and rendering. The manager calls these methods to coordinate multiple effects.

Signature

interface IHoverEffect

Methods

draw ( canvas )
Draws the effect to the canvas
Signature
abstract fun draw(canvas: Canvas)
Parameters
canvas: Canvas
onHover ( x , y , outlinePath )
Called when hover position or outline changes
Signature
abstract fun onHover(x: Float, y: Float, outlinePath: Path)
Parameters
x: Float
y: Float
outlinePath: Path
onUnhover ()
Called when hover ends (triggers fade-out)
Signature
abstract fun onUnhover()
setOnRemove ( onRemove )
Sets the callback to invoke when the effect should be removed (after fade-out completes)
Signature
abstract fun setOnRemove(onRemove: Runnable)
Parameters
onRemove: Runnable
update ( deltaTimeMs )
Updates animation state. Called each frame.
Signature
abstract fun update(deltaTimeMs: Long)
Parameters
deltaTimeMs: Long