Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object App
Link copied to clipboard
data class AppActions(val scope: CoroutineScope, val showChangelog: () -> Unit, val showProVersionDialog: () -> Unit, val showSettingsDialog: () -> Unit, snackbarHostState: StyledSnackbarHostState)
Link copied to clipboard
class AppSetup(val developer: AppSetup.Developer = Developer.Author( Constants.DEVELOPER_NAME, Constants.DEVELOPER_EMAIL ), val appData: AppSetup.AppData, val icon: @Composable () -> Painter, val themeSupport: AppSetup.ThemeSupport, val prefs: BasePrefs, val debug: AppSetup.Debug, val disableLanguagePicker: Boolean, val privacyPolicyLink: String, val logging: AppSetup.Logging, val changelogSetup: ChangelogSetup?, val isDebugBuild: Boolean)
Link copied to clipboard
object Constants
Link copied to clipboard

Standard slot contents that callers can reuse inside their own scaffold-slot wrappers.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
val AppScope: CoroutineScope

Functions

Link copied to clipboard
fun DesktopWindow(onCloseRequest: () -> Unit, state: WindowState = rememberDesktopWindowState(DesktopAppSetup.get().prefs), visible: Boolean = true, title: String = AppSetup.get().appData.name, icon: Painter? = AppSetup.get().icon.invoke(), undecorated: Boolean = false, transparent: Boolean = false, resizable: Boolean = true, enabled: Boolean = true, focusable: Boolean = true, alwaysOnTop: Boolean = false, onPreviewKeyEvent: (KeyEvent) -> Boolean = { false }, onKeyEvent: (KeyEvent) -> Boolean = { false }, appIsClosing: MutableState<Boolean> = remember { mutableStateOf(false) }, content: @Composable FrameWindowScope.() -> Unit)
Link copied to clipboard
fun App.init(app: Application, setup: AppSetup, android: AndroidAppSetup, appIcon: Int)
fun App.init(setup: AppSetup, desktop: DesktopAppSetup)
fun App.init(setup: AppSetup, wasm: WasmAppSetup)
Link copied to clipboard
Link copied to clipboard
fun MainAppScaffold(navigationItems: List<StyledNavigationItem<NavScreen>>, backStackConfiguration: SavedStateConfiguration, startDestination: NavScreen? = null, toolbar: @Composable () -> Unit = {}, topAppBarColor: @Composable () -> Color? = null, topAppBarContentColor: @Composable () -> Color? = null, scaffoldColor: @Composable () -> Color? = null, bottomNavColor: @Composable () -> Color? = null, settings: @Composable (paddingValues: PaddingValues) -> Unit? = null, forwardHistoryEnabled: Boolean = true, resetInactiveNavigationStacksOnSelection: Boolean = false, showTopAppBarWithoutToolbar: Boolean = false, themeCustomization: @Composable StyledRegistry.Builder.() -> Unit? = null, topAppBar: @Composable (ToolbarConfig?) -> Unit, bottomNav: @Composable (items: List<StyledNavigationItem<NavScreen>>, selectedKey: NavScreen, onItemClick: (NavScreen) -> Unit) -> Unit, sideNav: @Composable (items: List<StyledNavigationItem<NavScreen>>, selectedKey: NavScreen, mode: StyledNavigationMode.Side, expanded: MutableState<Boolean>, onItemClick: (NavScreen) -> Unit) -> Unit, content: @Composable (paddingValues: PaddingValues, adaptiveInfo: State<StyledAdaptiveInfo>) -> Unit)

Displays one independently saved Nav3 stack per top-level navigation item. The caller supplies the serializer configuration for the app's open set of NavScreen key types. Color overrides are composable lambdas so they are evaluated inside StyledTheme. Forward history is enabled by default and can be disabled for the whole app. Inactive top-level stacks are preserved unless resetInactiveNavigationStacksOnSelection is enabled. The topAppBar, bottomNav, sideNav, and content slots provide the scaffold UI explicitly. Use MainAppScaffoldDefaults to reuse the standard bar, navigation, and Nav3 content. A custom content slot receives the scaffold padding and adaptive layout information. Set showTopAppBarWithoutToolbar to display the top-app-bar slot even when the current screen has no toolbar configuration or selection content.

Link copied to clipboard
fun MainAppScaffoldWithAppSheet(navigationItems: List<StyledNavigationItem<NavScreen>>, backStackConfiguration: SavedStateConfiguration, sheetState: MainAppSheetState = rememberMainAppSheetState(), startDestination: NavScreen? = null, toolbar: @Composable () -> Unit = {}, topAppBarColor: @Composable () -> Color? = null, topAppBarContentColor: @Composable () -> Color? = null, scaffoldColor: @Composable () -> Color? = null, bottomNavColor: @Composable () -> Color? = null, settings: @Composable (paddingValues: PaddingValues) -> Unit? = null, forwardHistoryEnabled: Boolean = true, resetInactiveNavigationStacksOnSelection: Boolean = false, showTopAppBarWithoutToolbar: Boolean = false, topAppBar: @Composable (ToolbarConfig?) -> Unit, themeCustomization: @Composable StyledRegistry.Builder.() -> Unit? = null, bottomNav: @Composable (items: List<StyledNavigationItem<NavScreen>>, selectedKey: NavScreen, onItemClick: (NavScreen) -> Unit) -> Unit, sideNav: @Composable (items: List<StyledNavigationItem<NavScreen>>, selectedKey: NavScreen, mode: StyledNavigationMode.Side, expanded: MutableState<Boolean>, onItemClick: (NavScreen) -> Unit) -> Unit, sheetToolbar: @Composable (MainAppSheetState) -> Unit, sheetContent: @Composable (MainAppSheetState) -> Unit, content: @Composable (paddingValues: PaddingValues, adaptiveInfo: State<StyledAdaptiveInfo>) -> Unit)

Adds a draggable, expandable app sheet and floating header toolbar to MainAppScaffold. The header and sheet content receive the same MainAppSheetState for observing progress and opening or closing the sheet.

Link copied to clipboard
fun MainAppSettings(paddingValues: PaddingValues, setup: MainAppSettings.Setup = MainAppSettings.Setup(), custom: @Composable () -> Unit = {})
Link copied to clipboard
fun <RootPage : NavScreen, DetailPage : NavKey> MasterDetailContainer(manager: MasterDetailState<RootPage, DetailPage>, masterDetailMode: StyledAdaptiveMasterDetailMode, defaultDetailPage: () -> DetailPage? = null, modifier: Modifier = Modifier, masterFraction: Float = 0.4f, paneSpacing: Dp = StyledTheme.spacing.medium, transitionSpec: AnimatedContentTransitionScope<Scene<NavKey>>.() -> ContentTransform = NavScreenDefaults.masterDetailTransitionSpec(masterDetailMode), popTransitionSpec: AnimatedContentTransitionScope<Scene<NavKey>>.() -> ContentTransform = NavScreenDefaults.masterDetailPopTransitionSpec(masterDetailMode), predictivePopTransitionSpec: AnimatedContentTransitionScope<Scene<NavKey>>.(Int) -> ContentTransform = NavScreenDefaults.masterDetailPredictivePopTransitionSpec(masterDetailMode), masterContent: @Composable () -> Unit, emptyDetailContent: @Composable () -> Unit, detailContent: @Composable (DetailPage) -> Unit)

Shows the master and detail panes, keeping the master as the NavDisplay root in single-pane mode so transitions animate between the master and its detail pages.

Link copied to clipboard