Package 

Class RepeatableClickableButtonKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit RepeatableClickableButton(Function0<Unit> onClick, Function0<Unit> onLongRepeatableClick, Modifier modifier, Function0<Unit> onLongRepeatableClickEnd, Boolean enabled, ButtonColors colors, MutableInteractionSource interactionSource, Shape shape, ButtonBorder border, Indication indication, Function1<BoxScope, Unit> content) A base button that can send single onClick event or repeated onLongRepeatableClick events by holding it down.
      • Methods inherited from class java.lang.Object

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

      • RepeatableClickableButton

        @Composable() final static Unit RepeatableClickableButton(Function0<Unit> onClick, Function0<Unit> onLongRepeatableClick, Modifier modifier, Function0<Unit> onLongRepeatableClickEnd, Boolean enabled, ButtonColors colors, MutableInteractionSource interactionSource, Shape shape, ButtonBorder border, Indication indication, Function1<BoxScope, Unit> content)

        A base button that can send single onClick event or repeated onLongRepeatableClick events by holding it down.

        Code modified from https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:wear/compose/compose-material/src/main/java/androidx/wear/compose/material/Button.kt