BaseBeautyState

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

PropertyTypeDescription
smoothLevelStateFlow<Float>Smooth level, value range 0-9
whitenessLevelStateFlow<Float>Whiteness level, value range 0-9
ruddyLevelStateFlow<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
}
}

Constructors

Link copied to clipboard
constructor(smoothLevel: StateFlow<Float>, whitenessLevel: StateFlow<Float>, ruddyLevel: StateFlow<Float>)

Properties

Link copied to clipboard
val ruddyLevel: StateFlow<Float>

Ruddy level, value range 0-9; 0 means off, 9 means most obvious effect.

Link copied to clipboard
val smoothLevel: StateFlow<Float>

Smooth level, value range 0-9; 0 means off, 9 means most obvious effect.

Link copied to clipboard
val whitenessLevel: StateFlow<Float>

Whiteness level, value range 0-9; 0 means off, 9 means most obvious effect.