PreferenceCenterScreen
fun PreferenceCenterScreen(identifier: String, modifier: Modifier = Modifier, topBar: @Composable (title: String, onNavigateUp: () -> Unit) -> Unit? = null, onNavigateUp: () -> Unit = {})(source)
Preference Center screen with a top bar.
Parameters
identifier
The preference center identifier.
modifier
The modifier to be applied to the screen.
topBar
Optional top bar composable. If null, a default top bar will be used.
onNavigateUp
Optional callback to be invoked when the navigate up action is triggered.
fun PreferenceCenterScreen(state: PreferenceCenterState, modifier: Modifier = Modifier, topBar: @Composable (title: String, onNavigateUp: () -> Unit) -> Unit? = null, onNavigateUp: () -> Unit = { })(source)
Preference Center screen with a top bar.
Parameters
state
The preference center state.
modifier
The modifier to be applied to the screen.
topBar
Optional top bar composable. If null, a default top bar will be used.
onNavigateUp
Optional callback to be invoked when the navigate up action is triggered.