public class

SelfRemovingPreference

extends Preference
java.lang.Object
   ↳ android.support.v7.preference.Preference
     ↳ lineageos.preference.SelfRemovingPreference
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
SelfRemovingPreference(Context context, AttributeSet attrs, int defStyle, int defStyleRes)
SelfRemovingPreference(Context context, AttributeSet attrs, int defStyle)
SelfRemovingPreference(Context context, AttributeSet attrs)
SelfRemovingPreference(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.Preference
From class java.lang.Object
From interface java.lang.Comparable

Public Constructors

public SelfRemovingPreference (Context context, AttributeSet attrs, int defStyle, int defStyleRes)

added in API level 8

Parameters
context Context
attrs AttributeSet
defStyle int
defStyleRes int

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

added in API level 8

Parameters
context Context
attrs AttributeSet
defStyle int

public SelfRemovingPreference (Context context, AttributeSet attrs)

added in API level 8

Parameters
context Context
attrs AttributeSet

public SelfRemovingPreference (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