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 1
1
# consumable-code-the-meal-db-api By AmirIsBack
2
- - v1.0.0 - Development
2
+ - v1.0.1 - Development
3
3
- Stable Version
4
4
5
5
# About This Project
@@ -66,11 +66,11 @@ https://www.themealdb.com/api.php
66
66
# Version Release
67
67
This Is Latest Release
68
68
69
- $version_release = 1.0.0
69
+ $version_release = 1.0.1
70
70
71
71
What's New??
72
72
73
- * Stable Version *
73
+ * Handling Progress view *
74
74
75
75
# How To Use This Project
76
76
<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:
94
94
95
95
<h3 >Step 3. Declaration ConsumeTheMealDbApi</h3 >
96
96
97
- val consumeMealApi = ConsumeTheMealDbApi("1") // 1 is API_KEY
97
+ val consumeMealApi = ConsumeTheMealDbApi("1") Your API_KEY
98
98
consumeMealApi.usingChuckInterceptor(this) // Using Chuck Interceptor
99
99
consumeMealApi.listAllCateories(object : MealResultCallback<MealResponse<Category>> {
100
100
override fun getResultData(data: MealResponse<Category>) {
@@ -104,8 +104,17 @@ Add it in your root build.gradle at the end of repositories:
104
104
}
105
105
106
106
override fun failedResult(statusCode: Int, errorMessage: String?) {
107
- Toast.makeText(this@MainActivity, errorMessage, Toast.LENGTH_SHORT).show()
107
+ // Failed Status
108
108
}
109
+
110
+ override fun onShowProgress() {
111
+ // Show Your Progress View
112
+ }
113
+
114
+ override fun onHideProgress() {
115
+ // Hide Your Progress View
116
+ }
117
+
109
118
})
110
119
111
120
# Colaborator
You can’t perform that action at this time.
0 commit comments