public class

SelfRemovingListPreference

extends ListPreference
java.lang.Object
   ↳ android.support.v7.preference.Preference
     ↳ android.support.v7.preference.DialogPreference
       ↳ android.support.v7.preference.ListPreference
         ↳ lineageos.preference.SelfRemovingListPreference
Known Direct Subclasses

Class Overview

A Preference which can automatically remove itself from the hierarchy based on constraints set in XML.

Summary

[Expand]
Inherited Constants
From class android.support.v7.preference.Preference
Public Constructors
SelfRemovingListPreference(Context context, AttributeSet attrs, int defStyle)
SelfRemovingListPreference(Context context, AttributeSet attrs)
SelfRemovingListPreference(Context context)
Public Methods
boolean isAvailable()
void onAttached()
void onBindViewHolder(PreferenceViewHolder holder)
void setAvailable(boolean available)
[Expand]
Inherited Methods
From class android.support.v7.preference.ListPreference
From class android.support.v7.preference.DialogPreference
From class android.support.v7.preference.Preference
From class java.lang.Object
From interface java.lang.Comparable

Public Constructors

public SelfRemovingListPreference (Context context, AttributeSet attrs, int defStyle)

added in API level 8

Parameters
context Context
attrs AttributeSet
defStyle int

public SelfRemovingListPreference (Context context, AttributeSet attrs)

added in API level 8

Parameters
context Context
attrs AttributeSet

public SelfRemovingListPreference (Context context)

added in API level 8

Parameters
context Context

Public Methods

public boolean isAvailable ()

added in API level 8

Returns
boolean

public void onAttached ()

public void onBindViewHolder (PreferenceViewHolder holder)

Parameters
holder PreferenceViewHolder

public void setAvailable (boolean available)

added in API level 8

Parameters
available boolean