changeGestureExclusions

abstract fun changeGestureExclusions(gesture: GestureType, exclusions: Set<GestureType>)

Allows to change the default gesture detection behaviour. For example invocation of this method with the following parameters: setExclusiveGestures(GestureType.ROTATION, setOf(GestureType.SCALE)) results in GestureType.ROTATION being ignored if its not already ongoing before GestureType.SCALE.

Passing an empty set will remove any restrictions for the given gesture type. For example default configuration does not allow for GestureType.ROTATION and GestureType.SCALE to occur when GestureType.SHOVE is in progress. However after invocation of setExclusiveGestures(GestureType.SHOVE, emptySet()) this restriction will be lifted off.

Default configuration:

Parameters

gesture

Gesture which will be ignored when one of the gestures from the exclusion set is in progress.

exclusions

Set of gestures which, if they are in progress, override the input gesture and cause it to be ignored.