BottomAppBar

interface BottomAppBar<T : Modifier> : Layout<T>

BottomAppBar 可组合函数的参数接口。

Author

M8Test, [email protected], https://m8test.com

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(actionsBuilder: RowScopeSlot.() -> Unit)

设置此 BottomAppBar 的图标内容。 Slot 的接收者类型应为 RowScope。

Link copied to clipboard
abstract fun setContainerColor(colorBuilder: Color.() -> Unit)

设置用于此 BottomAppBar 背景的颜色。

Link copied to clipboard
abstract fun setContentColor(colorBuilder: Color.() -> Unit)

设置此 BottomAppBar 内部内容的首选颜色。

Link copied to clipboard
abstract fun setContentPadding(paddingBuilder: PaddingValues.() -> Unit)

设置应用于此 BottomAppBar 内容的内边距。

Link copied to clipboard
abstract fun setFloatingActionButton(fabBuilder: UnitScopeSlot.() -> Unit)

设置位于此 BottomAppBar 末尾的可选浮动操作按钮 (FAB)。

Link copied to clipboard
abstract fun setModifier(modifierBuilder: T.() -> Unit)
Link copied to clipboard
abstract fun setTonalElevation(elevation: (Dimensions) -> Dp)

设置色调高度。

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

设置显示/隐藏当前 Composable

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 会重组