ComposePreferences
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
ComposePreferences
core
/
com.michaelflisar.composepreferences.core.classes
/
PreferenceState
Preference
State
class
PreferenceState
Members
Types
Group
Link copied to clipboard
class
Group
(
val
id
:
Int
,
val
title
:
String
)
:
Parcelable
Item
Link copied to clipboard
class
Item
(
val
id
:
Int
,
val
level
:
Int
,
val
type
:
PreferenceType
,
val
visible
:
Boolean
)
Properties
current
Level
Link copied to clipboard
val
currentLevel
:
Int
opened
Link copied to clipboard
val
opened
:
List
<
PreferenceState.Group
>
Functions
count
All
Link copied to clipboard
fun
countAll
(
includeSections
:
Boolean
=
true
,
includeGroups
:
Boolean
=
true
)
:
Int
count
Current
Level
Link copied to clipboard
fun
countCurrentLevel
(
includeSections
:
Boolean
=
true
,
includeGroups
:
Boolean
=
true
)
:
Int
count
Visible
Link copied to clipboard
fun
countVisible
(
includeSections
:
Boolean
=
true
,
includeGroups
:
Boolean
=
true
)
:
Int
pop
All
Link copied to clipboard
fun
popAll
(
)
pop
Last
Link copied to clipboard
fun
popLast
(
)
push
Link copied to clipboard
fun
push
(
group
:
PreferenceState.Group
)