Package 

Class ToggleButtonKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit ToggleButton(String text, Function1<Boolean, Unit> onCheckedChanged, Modifier modifier, Boolean checked, Boolean enabled, ToggleButtonColors colors, MutableInteractionSource interactionSource, Shape shape, Role role, Boolean smallSize) This component is an alternative to ToggleButton, providing the following:
      • a convenient way of providing text;

      final static Unit ToggleButton(PaintableIcon checkedIcon, PaintableIcon notCheckedIcon, String contentDescription, Function1<Boolean, Unit> onCheckedChanged, Modifier modifier, Boolean checked, Boolean enabled, ToggleButtonColors colors, MutableInteractionSource interactionSource, Shape shape, Role role, IconRtlMode iconRtlMode, Boolean smallSize) § This component is an alternative to ToggleButton, providing the following:
      • a convenient way of providing a icons for the checked and not checked states;

      • Methods inherited from class java.lang.Object

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

      • ToggleButton

        @Composable() final static Unit ToggleButton(String text, Function1<Boolean, Unit> onCheckedChanged, Modifier modifier, Boolean checked, Boolean enabled, ToggleButtonColors colors, MutableInteractionSource interactionSource, Shape shape, Role role, Boolean smallSize)

        This component is an alternative to ToggleButton, providing the following:

        • a convenient way of providing text;

      • ToggleButton

        @Composable() final static Unit ToggleButton(PaintableIcon checkedIcon, PaintableIcon notCheckedIcon, String contentDescription, Function1<Boolean, Unit> onCheckedChanged, Modifier modifier, Boolean checked, Boolean enabled, ToggleButtonColors colors, MutableInteractionSource interactionSource, Shape shape, Role role, IconRtlMode iconRtlMode, Boolean smallSize)

        § This component is an alternative to ToggleButton, providing the following:

        • a convenient way of providing a icons for the checked and not checked states;