rememberTapeController

fun rememberTapeController(paint: Paint = defaultTapePaint(), imagePaint: Paint = Paint(), selectedTapeAlpha: Float = 0.2f, tapeCornerRadius: CornerRadius = CornerRadius(10f, 10f)): TapeController

Creates and remembers a TapeController instance.

Return

A remembered TapeController instance.

Parameters

paint

The default paint used for drawing the tape. Defaults to defaultTapePaint().

imagePaint

The default paint used for drawing the tape image. Defaults to a new Paint().

selectedTapeAlpha

The alpha value for the selected tape. Defaults to 0.2f.

tapeWidth

The width of the tape. Defaults to 80f.

tapeCornerRadius

The corner radius for the tape. Defaults to CornerRadius(10f, 10f).