Class SettingsComponentsKt

    • Constructor Detail

    • Method Detail

      • SettingsTopbar

        @Composable() final static Unit SettingsTopbar(Modifier modifier, ModalDialogStyle dialogStyle, Function0<Unit> onSettingsClose)

        Compose Wrapper of DialogTitleView to show the title of the settings dialog.

        Parameters:
        modifier - : Modifier
        dialogStyle - : ModalDialogStyle style of the dialog
        onSettingsClose - : () -> Unit function to close the settings dialog
      • SettingsPresetWebView

        @Composable() final static Unit SettingsPresetWebView(Preset preset, Boolean animationActive, SettingsThemeConfiguration theme)

        Compose Wrapper of WebView to show VERTICAL and HORIZONTAL pdf scrolling animation.

        Parameters:
        preset - : Preset input to show the selected animation
        animationActive - : Boolean to enable or disable the animation
        theme - : SettingsThemeConfiguration theme configuration
      • SettingsIconButton

        @Composable() final static Unit SettingsIconButton(Integer icon, Boolean selected, SettingsThemeConfiguration theme, Boolean enabled, Function0<Unit> click)

        Custom IconButton component to display selected / unselected options of the settings.

        Parameters:
        icon - : Int drawable resource id to set the icon.
        selected - : Boolean to enable or disable the icon.
        theme - : SettingsThemeConfiguration theme configuration
        enabled - : Boolean to enable or disable the icon.
        click - : () -> Unit function to handle the click event.
      • SettingsPresetSection

        @Composable() final static Unit SettingsPresetSection(SettingsState settingsState, Function1<Preset, Unit> click)

        Custom SettingsPresetSection component act as a container to display the VERTICAL and HORIZONTAL preset of the settings.

        Parameters:
        settingsState - : SettingsState input to show the selected animation
        click - : (Preset) -> Unit function to handle the click event.
      • SettingsFieldWithSwitch

        @Composable() final static Unit SettingsFieldWithSwitch(Boolean state, @StringRes() Integer textId, SettingsThemeConfiguration theme, Dp horizontalPadding, Function1<Boolean, Unit> onClick)

        Composable Title field to display the settings with switch.

        Parameters:
        state - : Boolean input to show the selected option
        textId - : Int input to show the title of the settings
        theme - : SettingsThemeConfiguration theme configuration
        horizontalPadding - : Dp input to set the horizontal padding of the Composable
        onClick - : (Boolean) -> Unit function to handle the click event.
      • SettingsPresetItem

        @Composable() final static Unit SettingsPresetItem(Preset preset, SettingsState settingsState, Function1<Preset, Unit> onClick)

        SettingsPresetItem is a custom composable to display SettingsPresetWebView with a title and switch.

        Parameters:
        preset - : Preset input display preset configuration
        settingsState - : SettingsState input to show the selected preset
        onClick - : (Preset) -> Unit function to handle the click event.