DropdownMenu

interface DropdownMenu<T : Modifier> : Layout<T>

用于存储 Jetpack Compose DropdownMenu 可组合函数的接口。 菜单在临时表面上显示一个选择列表。

Author

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

Parameters

T

修饰符的类型。

See also

androidx.compose.material3.DropdownMenu

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 setContent(contentBuilder: ColumnScopeSlot.() -> Unit)

设置此下拉菜单的内容。

Link copied to clipboard
abstract fun setExpanded(value: Boolean)

设置菜单是否展开。

Link copied to clipboard
abstract fun setModifier(modifierBuilder: T.() -> Unit)
Link copied to clipboard
abstract fun setOffset(offset: (Dimensions) -> DpOffset)

设置与菜单原始位置的 DpOffset 偏移量。

Link copied to clipboard
abstract fun setOnDismissRequest(callback: () -> Unit)

设置当用户请求关闭菜单时调用的回调。

Link copied to clipboard
abstract fun setProperties(properties: PopupProperties.() -> Unit)

设置用于进一步自定义此弹出窗口行为的属性。

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