This repository was archived by the owner on Aug 18, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed
Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change 11# consumable-code-the-meal-db-api By AmirIsBack
2- - v1.0.0 - Development
2+ - v1.0.1 - Development
33- Stable Version
44
55# About This Project
@@ -66,11 +66,11 @@ https://www.themealdb.com/api.php
6666# Version Release
6767This Is Latest Release
6868
69- $version_release = 1.0.0
69+ $version_release = 1.0.1
7070
7171What's New??
7272
73- * Stable Version *
73+ * Handling Progress view *
7474
7575# How To Use This Project
7676<h3 >Step 1. Add the JitPack repository to your build file</h3 >
@@ -94,7 +94,7 @@ Add it in your root build.gradle at the end of repositories:
9494
9595<h3 >Step 3. Declaration ConsumeTheMealDbApi</h3 >
9696
97- val consumeMealApi = ConsumeTheMealDbApi("1") // 1 is API_KEY
97+ val consumeMealApi = ConsumeTheMealDbApi("1") Your API_KEY
9898 consumeMealApi.usingChuckInterceptor(this) // Using Chuck Interceptor
9999 consumeMealApi.listAllCateories(object : MealResultCallback<MealResponse<Category>> {
100100 override fun getResultData(data: MealResponse<Category>) {
@@ -104,8 +104,17 @@ Add it in your root build.gradle at the end of repositories:
104104 }
105105
106106 override fun failedResult(statusCode: Int, errorMessage: String?) {
107- Toast.makeText(this@MainActivity, errorMessage, Toast.LENGTH_SHORT).show()
107+ // Failed Status
108108 }
109+
110+ override fun onShowProgress() {
111+ // Show Your Progress View
112+ }
113+
114+ override fun onHideProgress() {
115+ // Hide Your Progress View
116+ }
117+
109118 })
110119
111120# Colaborator
You can’t perform that action at this time.
0 commit comments