Compose Unstyled 2.0 is out! Check the official announcement blog ->
Composable Function

rememberMutableRemoteFloat

Factory composable for mutable remote float state.

rememberMutableRemoteFloat

Source set: Android
@Composable
@RemoteComposable
public fun rememberMutableRemoteFloat(initialValue: Float): MutableRemoteFloat

Factory composable for mutable remote float state.

Parameters

initialValue The initial Float value.

Returns

A MutableRemoteFloat instance that will be remembered across recompositions.

rememberMutableRemoteFloat

Source set: Android
@Composable
@RemoteComposable
public fun rememberMutableRemoteFloat(
    value: RemoteFloatContext.() -> RemoteFloat
): MutableRemoteFloat

Remembers a remote float expression based on RemoteFloatContext.

Parameters

value A lambda that provides the RemoteFloat expression.

Returns

A RemoteFloat instance representing the provided expression.

Last updated: