LargeTopAppBar

LargeTopAppBar 的参数接口。

Functions

Link copied to clipboard
abstract fun DisposableEffect(disposableEffectBuilder: DisposableEffect.() -> Unit)
Link copied to clipboard
Link copied to clipboard
abstract fun <V> getCompositionLocalValue(compositionLocal: ProvidableCompositionLocal<V>): V?

获取 compositionLocal 的值

Link copied to clipboard
abstract fun getContext(): ScriptContext

获取脚本上下文对象 ScriptContext.

Link copied to clipboard
abstract fun LaunchedEffect(launchedEffectBuilder: LaunchedEffect.() -> Unit)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun setActions(slotBuilder: RowScopeSlot.() -> Unit)

设置显示在 TopAppBar 末尾的操作图标。 Slot 的接收者类型应为 RowScope。

Link copied to clipboard
abstract fun setCollapsedHeight(height: (Dimensions) -> Dp)

设置此应用栏通过 scrollBehavior 折叠时的高度。

Link copied to clipboard
abstract fun setColors(colorsBuilder: TopAppBarColors.() -> Unit)

设置用于解析此 TopAppBar 颜色的 TopAppBarColors

Link copied to clipboard
abstract fun setExpandedHeight(height: (Dimensions) -> Dp)

设置此应用栏的最大高度。

Link copied to clipboard
abstract fun setModifier(modifierBuilder: T.() -> Unit)
Link copied to clipboard
abstract fun setNavigationIcon(slotBuilder: UnitScopeSlot.() -> Unit)

设置显示在 TopAppBar 开头的导航图标。

Link copied to clipboard
abstract fun setTitle(slotBuilder: UnitScopeSlot.() -> Unit)

设置要在 TopAppBar 中显示的标题。

Link copied to clipboard
abstract fun setVisible(visible: Boolean)

设置显示/隐藏当前 Composable

Link copied to clipboard
abstract fun setWindowInsets(windowInsets: (WindowInsetsProviders) -> WindowInsets)

设置将通过 PaddingValues 参数传递给内容区域的窗口边衬区。

Link copied to clipboard
abstract fun SideEffect(sideEffectBuilder: SideEffect.() -> Unit)
Link copied to clipboard

设置所有需要用到的聚合状态,例如 DrawerState, BottomSheetState 等

Link copied to clipboard
abstract fun trackSingleState(state: SingleState)

添加当前 Composable 需要监听的状态,如果状态改变的话 Composable 会重组