GifInteraction
annotation class GifInteraction(val type: GifInteractionType = GifInteractionType.PAUSE, val frames: Int = 0, val framesAfter: Int = 0, val target: GifInteractionTarget = GifInteractionTarget.CENTER, val direction: GifSwipeDirection = GifSwipeDirection.LEFT_TO_RIGHT, val distance: GifSwipeDistance = GifSwipeDistance.MEDIUM, val speed: GifSwipeSpeed = GifSwipeSpeed.CUSTOM, val travelFrames: Int = 8, val holdStartFrames: Int = 0, val releaseFrames: Int = 0)
A high-level interaction step expanded by the KSP processor into one or more low-level gestures.
Properties
Link copied to clipboard
Swipe direction when type is SWIPE.
Link copied to clipboard
Swipe travel distance when type is SWIPE.
Link copied to clipboard
Extra pause frames after the interaction.
Link copied to clipboard
Explicit hold frames before travel when speed is CUSTOM.
Link copied to clipboard
Explicit hold frames after release when speed is CUSTOM.
Link copied to clipboard
High-level swipe timing preset.
Link copied to clipboard
Target lane for the interaction.
Link copied to clipboard
Explicit swipe travel frames when speed is CUSTOM.
Link copied to clipboard
Interaction operation to perform.