PreferencePositionCallback

Interface for PreferenceGroup adapters to implement so that scrollToPreference and scrollToPreference can determine the correct scroll position to request.

Inheritors

Functions

Link copied to clipboard
abstract fun getPreferenceAdapterPosition(@NonNull preference: Preference): Int
Returns the adapter position of the specified Preference object
Returns the adapter position of the first Preference with the specified key.