PreferenceGroupKt

public final class PreferenceGroupKt


Summary

Public fields

final @NonNull Sequence<@NonNull Preference>

Returns a Sequence over the preferences in this preference group.

final int

Returns the number of preferences in this preference group.

Public methods

static final boolean
PreferenceGroupKt.contains(
    PreferenceGroup receiver,
    Preference preference
)

Returns true if preference is found in this preference group.

static final void
PreferenceGroupKt.forEach(
    PreferenceGroup receiver,
    Function1<PreferenceUnit> action
)

Performs the given action on each preference in this preference group.

static final void
PreferenceGroupKt.forEachIndexed(
    PreferenceGroup receiver,
    Function2<IntegerPreferenceUnit> action
)

Performs the given action on each preference in this preference group, providing its sequential index.

static final T
<T extends Preference> PreferenceGroupKt.get(
    PreferenceGroup receiver,
    CharSequence key
)

Returns the preference with key, or null if no preference with key is found.

static final @NonNull Preference
PreferenceGroupKt.get(PreferenceGroup receiver, int index)

Returns the preference at index.

static final boolean

Returns true if this preference group contains no preferences.

static final boolean

Returns true if this preference group contains one or more preferences.

static final @NonNull Iterator<@NonNull Preference>

Returns a MutableIterator over the preferences in this preference group.

static final void
PreferenceGroupKt.minusAssign(
    PreferenceGroup receiver,
    Preference preference
)

Removes preference from this preference group.

static final void