onPrepare

fun onPrepare(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (direction: NavigationDirection) -> Unit): <Error class: unknown class>(source)

This signal is emitted when a possible swipe is detected.

The @direction value can be used to restrict the swipe to a certain direction.

Parameters

connectFlags

a combination of ConnectFlags

handler

the Callback to connect. Params: direction the direction of the swipe