Base Beauty State
data class BaseBeautyState(val smoothLevel: StateFlow<Float>, val whitenessLevel: StateFlow<Float>, val ruddyLevel: StateFlow<Float>)
Basic beauty state, managing the level data of smooth, whiteness, ruddy and other beauty effects. Supports subscription to synchronize UI display with actual effects.
Overview
A comprehensive snapshot of the current beauty session state. This structure contains all relevant information about smooth, whiteness, ruddy and other beauty effect levels.
State Property Overview
| Property | Type | Description |
| smoothLevel | StateFlow<Float> | Smooth level, value range 0-9 |
| whitenessLevel | StateFlow<Float> | Whiteness level, value range 0-9 |
| ruddyLevel | StateFlow<Float> | Ruddy level, value range 0-9 |
Tip: The state is updated automatically when beauty setting methods are called. Subscribe to baseBeautyState to receive real-time updates.
Usage Example
lifecycleScope.launch {
store.baseBeautyState.smoothLevel.collect { level ->
smoothSlider.value = level
}
}
lifecycleScope.launch {
store.baseBeautyState.whitenessLevel.collect { level ->
whitenessSlider.value = level
}
}
lifecycleScope.launch {
store.baseBeautyState.ruddyLevel.collect { level ->
ruddySlider.value = level
}
}Content copied to clipboard