Package-level declarations
Types
Functions
Link copied to clipboard
fun animateLaserAlphaFloatAsState(controller: LaserPointerController, finishedListener: () -> Unit): State<Float>
Composable function that animates the alpha (opacity) of the laser path based on its state. The animation is triggered when the laser ends, and its opacity smoothly transitions from 1f to 0f.
Link copied to clipboard
Composable function to create and remember the LaserPointerController.
Link copied to clipboard
fun Modifier.useLaserPointerMode(controller: LaserPointerController, progress: State<Float>, isEnabled: Boolean, onCanvasInvalidate: () -> Unit = { }): Modifier
A modifier that enables laser pointer mode on a canvas, allowing for touch gestures such as starting, moving, and ending a touch event with updates to the laser pointer’s appearance.