class HoverEffectOverlayManager(val method: HoverEffectMethod)
HoverEffectOverlayManager
(
method
)
|
method
: HoverEffectMethod
[Get] |
The hover effect overlay method to use
Signature
val method: HoverEffectMethod |
destroy
()
|
Releases all resources. Call when the manager is no longer needed.
Signature
fun destroy() |
ensureOverlay
(
panelSceneObject
, scene
, shapeConfig
, fallbackSurfaceControl
)
|
Ensures the overlay surface exists for the given panel. Creates a new overlay bound to the panel's SceneObject. If the panel changes, the overlay is recreated on the new panel.
Signature
fun ensureOverlay(panelSceneObject: PanelSceneObject, scene: Scene? = null, shapeConfig: PanelShapeConfig? = null, fallbackSurfaceControl: AttachedSurfaceControl?): Boolean Parameters shapeConfig: PanelShapeConfig?
The panel's shape config for physical dimensions (Compositor mode only)
fallbackSurfaceControl: AttachedSurfaceControl?
Optional surface control when rootView is unavailable (Surface mode only)
Returns Boolean
true if the overlay surface is ready for rendering
|
isHovering
()
|
Returns true if there is an active hover effect being rendered.
Signature
fun isHovering(): Boolean Returns Boolean |
onHover
(
bounds
)
|
Called when hovering over an element. Creates or updates the hover effect for the element.
Signature
fun onHover(bounds: Rect) Parameters bounds: Rect
The pixel bounds of the hovered element
|
onUnhover
()
|
Called when no longer hovering over any element. Fades out all active effects.
Signature
fun onUnhover() |