Class SwipeBoxKt

  • All Implemented Interfaces:

    
    public final class SwipeBoxKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Unit SwipeBox(Modifier modifier, Boolean isOnEditState, Color defaultColor, Color activeColor, Shape cornersShape, Function1<Boolean, Unit> swipeListener, Function1<BoxScope, Unit> content) Composable to create a swipe effect.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • SwipeBox

        @Composable() final static Unit SwipeBox(Modifier modifier, Boolean isOnEditState, Color defaultColor, Color activeColor, Shape cornersShape, Function1<Boolean, Unit> swipeListener, Function1<BoxScope, Unit> content)

        Composable to create a swipe effect. The more far away for the original position the user is, the harder it will be to keep moving, which mimics an elastic effect. The recomended usage of this compose is to create a swipe to edit functionality.

        Parameters:
        modifier - Modifier
        isOnEditState - Boolean
        defaultColor - Color The color of the container in the idle state
        activeColor - Color The color of the container in the active state
        cornersShape - Shape The shape of the container
        swipeListener - Listener of the swipe action
        content - The inner Composable