Gallery View Model
ViewModel that provides two way data bindings for images stored in the internal gallery.
See also
MVVM Architecture For more information about how this software architectural pattern works.
Constructors
GalleryViewModel
Link copied to clipboard
An instance of the current Application
Types
Factory
Link copied to clipboard
internal class Factory(application: Application) : ViewModelProvider.Factory
Content copied to clipboard
Factory to initiate this GalleryViewModel
Functions
delete Image Pair
Link copied to clipboard
Deletes an image pair from images and the external file directory.
file Belongs To Image Array Item
Link copied to clipboard
load Images
Link copied to clipboard
private fun loadImages(images: MutableLiveData<ArrayList<ArrayList<File>>>)
Content copied to clipboard
Updates images to be the same as the images in the external file directory
reload Images
Link copied to clipboard
fun reloadImages()
Content copied to clipboard
Calls loadImages to refresh images