Package com.aliucord.settings
Class Plugins.Adapter
-
- All Implemented Interfaces:
-
android.widget.Filterable
public class Plugins.Adapter extends RecyclerView.Adapter<VH> implements Filterable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
Plugins.Adapter.ViewHolder
-
Field Summary
Fields Modifier and Type Field Description public boolean
showBuiltIn
public final Filter
filter
-
Constructor Summary
Constructors Constructor Description Plugins.Adapter(AppFragment fragment, Collection<Plugin> plugins)
-
Method Summary
Modifier and Type Method Description Filter
getFilter()
int
getItemCount()
Plugins.Adapter.ViewHolder
onCreateViewHolder(@NonNull() ViewGroup parent, int viewType)
void
onBindViewHolder(@NonNull() Plugins.Adapter.ViewHolder holder, int position)
void
onGithubClick(int position)
void
onChangeLogClick(int position)
void
onSettingsClick(int position)
void
onToggleClick(Plugins.Adapter.ViewHolder holder, boolean state, int position)
void
onUninstallClick(int position)
static boolean
filterCorePlugins(Plugin p)
-
Methods inherited from class androidx.recyclerview.widget.RecyclerView.Adapter
bindViewHolder, createViewHolder, getItemId, getItemViewType, hasObservers, hasStableIds, notifyDataSetChanged, notifyItemChanged, notifyItemInserted, notifyItemMoved, notifyItemRangeChanged, notifyItemRangeInserted, notifyItemRangeRemoved, notifyItemRemoved, onAttachedToRecyclerView, onDetachedFromRecyclerView, onFailedToRecycleView, onViewAttachedToWindow, onViewDetachedFromWindow, onViewRecycled, registerAdapterDataObserver, setHasStableIds, unregisterAdapterDataObserver
-
Methods inherited from class android.widget.Filterable
getFilter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
Plugins.Adapter
Plugins.Adapter(AppFragment fragment, Collection<Plugin> plugins)
-
-
Method Detail
-
getItemCount
int getItemCount()
-
onCreateViewHolder
@NonNull() Plugins.Adapter.ViewHolder onCreateViewHolder(@NonNull() ViewGroup parent, int viewType)
-
onBindViewHolder
void onBindViewHolder(@NonNull() Plugins.Adapter.ViewHolder holder, int position)
-
onGithubClick
void onGithubClick(int position)
-
onChangeLogClick
void onChangeLogClick(int position)
-
onSettingsClick
void onSettingsClick(int position)
-
onToggleClick
void onToggleClick(Plugins.Adapter.ViewHolder holder, boolean state, int position)
-
onUninstallClick
void onUninstallClick(int position)
-
filterCorePlugins
static boolean filterCorePlugins(Plugin p)
-
-
-
-