java.lang.Object | ||
↳ | AndroidViewModel | |
↳ | com.pdftron.demo.navigation.viewmodel.FilterMenuViewModel |
A ViewModel in charge of the filtering menu functionality
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
interface | FilterMenuViewModel.OnFilterTypeChangeListener | Callback for updating menu UI |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
FilterMenuViewModel(Application application) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
clearFileFilters()
Clears all file type filters
| ||||||||||
void |
initialize(String settingsSuffix, FilterMenuViewModel.OnFilterTypeChangeListener listener)
Initialize filtering preferences stored in android.content.SharedPreferences
| ||||||||||
void |
toggleFileFilter(int fileType)
Toggles the filtering for a specified file type
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Clears all file type filters
Initialize filtering preferences stored in android.content.SharedPreferences
Toggles the filtering for a specified file type
fileType | file type from Constants
|
---|