addPreference

open fun addPreference(@NonNull preference: Preference): Boolean(source)

Adds a Preference at the correct position based on the preference's order.

Return

Whether the preference is now in this group

Parameters

preference

The preference to add