MealFileManager

used to save and load the daily image to prevent loading screen when entering the app for a nicer user expirience

Properties

Link copied to clipboard
open override val FILENAME: String
Link copied to clipboard

Functions

Link copied to clipboard
open override fun deleteData(context: Context): () -> Unit

delete the data by deleting the file

Link copied to clipboard
open override fun loadData(context: Context): List<Meal>

load the data from the FILENAME

Link copied to clipboard
fun loadMealBitmap(context: Context): Bitmap?
Link copied to clipboard
open override fun saveData(context: Context, meal: List<Meal>)

save the data from the FILENAME

Link copied to clipboard
fun saveMealBitmap(context: Context, bitmap: Bitmap?)