Package 

Class DebugFabButtonKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit attachOrDetachDebugButton(ViewGroup $self, Boolean shouldAttach, Boolean isDebugModeEnabled, Function0<DebugData> dataProvider, Function1<Boolean, Unit> onDebugModeChanged) ViewGroup extension for attaching or detaching the Debug FAB based on criteria.
      • Methods inherited from class java.lang.Object

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

      • attachOrDetachDebugButton

         final static Unit attachOrDetachDebugButton(ViewGroup $self, Boolean shouldAttach, Boolean isDebugModeEnabled, Function0<DebugData> dataProvider, Function1<Boolean, Unit> onDebugModeChanged)

        ViewGroup extension for attaching or detaching the Debug FAB based on criteria.

        • @param shouldAttach Whether the button should be visible/attached to the view.

        Parameters:
        isDebugModeEnabled - The current state of the debug switch (ON/OFF).
        dataProvider - A function to provide the debug data.
        onDebugModeChanged - Callback when the switch is toggled.