Stay organized with collections Save and categorize content based on your preferences.

PreferenceGroupKt

public final class PreferenceGroupKt


Summary

Public methods

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

Returns true if preference is found in this preference group.

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

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

static final void

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

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

Returns the preference at index.

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

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

static final @NonNull Sequence<@NonNull Preference>

Returns a Sequence over the preferences in this preference group.

static final int

Returns the number of preferences in this preference group.

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(
    @NonNull PreferenceGroup receiver,
    @NonNull Preference preference
)

Removes preference from this preference group.

static final void
PreferenceGroupKt.plusAssign(
    @NonNull PreferenceGroup receiver,
    @NonNull Preference preference
)

Adds preference to this preference group.

Public methods

PreferenceGroupKt.contains

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

Returns true if preference is found in this preference group.

PreferenceGroupKt.forEach

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

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

PreferenceGroupKt.forEachIndexed

public static final void PreferenceGroupKt.forEachIndexed(
    @NonNull PreferenceGroup receiver,
    @NonNull Function2<@NonNull Integer, @NonNull PreferenceUnit> action
)

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

PreferenceGroupKt.get

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

Returns the preference at index.

Throws
kotlin.IndexOutOfBoundsException kotlin.IndexOutOfBoundsException

if index is less than 0 or greater than or equal to the count.

PreferenceGroupKt.get

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

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

PreferenceGroupKt.getChildren

public static final @NonNull Sequence<@NonNull PreferencePreferenceGroupKt.getChildren(@NonNull PreferenceGroup receiver)

Returns a Sequence over the preferences in this preference group.

PreferenceGroupKt.getSize

public static final int PreferenceGroupKt.getSize(@NonNull PreferenceGroup receiver)

Returns the number of preferences in this preference group.

PreferenceGroupKt.isEmpty

public static final boolean PreferenceGroupKt.isEmpty(@NonNull PreferenceGroup receiver)

Returns true if this preference group contains no preferences.

PreferenceGroupKt.isNotEmpty

public static final boolean PreferenceGroupKt.isNotEmpty(@NonNull PreferenceGroup receiver)

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

PreferenceGroupKt.iterator

public static final @NonNull Iterator<@NonNull PreferencePreferenceGroupKt.iterator(@NonNull PreferenceGroup receiver)

Returns a MutableIterator over the preferences in this preference group.

PreferenceGroupKt.minusAssign

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

Removes preference from this preference group.

PreferenceGroupKt.plusAssign

public static final void PreferenceGroupKt.plusAssign(
    @NonNull PreferenceGroup receiver,
    @NonNull Preference preference
)

Adds preference to this preference group.