PreferencePositionCallback
interface PreferencePositionCallback
Interface for PreferenceGroup adapters to implement so that PreferenceFragmentCompat#scrollToPreference(String)
and PreferenceFragmentCompat#scrollToPreference(Preference)
can determine the correct scroll position to request.
Summary
Public methods |
abstract Int |
Returns the adapter position of the first Preference with the specified key.
|
abstract Int |
Returns the adapter position of the specified Preference object
|
Public methods
getPreferenceAdapterPosition
abstract fun getPreferenceAdapterPosition(key: String!): Int
Returns the adapter position of the first Preference
with the specified key.
getPreferenceAdapterPosition
abstract fun getPreferenceAdapterPosition(preference: Preference!): Int
Returns the adapter position of the specified Preference
object
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-07-22 UTC.