detectRotateGestures

suspend fun detectRotateGestures(onRotateBegin: (RotateGestureDetector) -> Unit = {}, onRotateEnd: (RotateGestureDetector) -> Unit = {}, onRotate: (RotateGestureDetector) -> Unit = {})

Registers an OnRotateListener and suspends until cancellation.

Parameters

onRotateBegin

called when the rotate gesture starts.

onRotate

called during the rotate gesture.

onRotateEnd

called when the rotate gesture ends.