Class SettingsUiComponentsKt
-
- All Implemented Interfaces:
public final class SettingsUiComponentsKt
-
-
Method Summary
Modifier and Type Method Description final static Unit
ImageView(Modifier modifier, @DrawableRes() Integer resource)
Compose Wrapper of android.widget.ImageView to show the image. final static Unit
ImageView(Modifier modifier, Drawable drawable)
Compose Wrapper of android.widget.ImageView to show the image. final static Unit
SettingsPresetWebView(Preset preset, Boolean animationActive, SettingsThemeConfiguration theme)
Compose Wrapper of WebView to show VERTICAL and HORIZONTAL pdf scrolling animation. 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. 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. final static Unit
SettingsFieldWithSwitch(Boolean state, @StringRes() Integer textId, Dp horizontalPadding, Boolean switchEnabled, Function1<Boolean, Unit> onClick)
Composable Title field to display the settings with switch. 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. final static Unit
SettingsDivider()
Component to display the divider with the given color. -
-
Method Detail
-
ImageView
@Composable() final static Unit ImageView(Modifier modifier, @DrawableRes() Integer resource)
Compose Wrapper of android.widget.ImageView to show the image.
- Parameters:
modifier
- : Modifierresource
- : Int drawable resource id to set the image.
-
ImageView
@Composable() final static Unit ImageView(Modifier modifier, Drawable drawable)
Compose Wrapper of android.widget.ImageView to show the image.
- Parameters:
modifier
- : Modifierdrawable
- : Drawable is directly used to set the image.
-
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 animationanimationActive
- : Boolean to enable or disable the animationtheme
- : 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 configurationenabled
- : 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 animationclick
- : (Preset) -> Unit function to handle the click event.
-
SettingsFieldWithSwitch
@Composable() final static Unit SettingsFieldWithSwitch(Boolean state, @StringRes() Integer textId, Dp horizontalPadding, Boolean switchEnabled, Function1<Boolean, Unit> onClick)
Composable Title field to display the settings with switch.
- Parameters:
state
- : Boolean input to show the selected optiontextId
- : Int input to show the title of the settingshorizontalPadding
- : Dp input to set the horizontal padding of the ComposableonClick
- : (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 configurationsettingsState
- : SettingsState input to show the selected presetonClick
- : (Preset) -> Unit function to handle the click event.
-
SettingsDivider
@Composable() final static Unit SettingsDivider()
Component to display the divider with the given color.
-
-
-
-