use Tape Mode
fun Modifier.useTapeMode(controller: TapeController, isEnabled: Boolean, onCanvasInvalidate: () -> Unit = { }): Modifier
Modifier extension function to enable or disable tape mode on a canvas.
This function allows users to interact with the canvas in tape mode, which includes detecting gestures, handling touch events, and drawing the tape-related content on the canvas.
Return
A modified Modifier that adds tape-related gesture handling and drawing functionality.
Parameters
controller
The TapeController instance that manages the tape state and touch events.
is Enabled
A boolean flag indicating whether tape mode should be enabled or disabled.
on Canvas Invalidate
A callback function that will be invoked when the canvas needs to be invalidated.