-
public final class DebugFabButtonKt
-
-
Method Summary
Modifier and Type Method Description final static UnitattachOrDetachDebugButton(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. -
-
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.
-
-
-
-