Skip to content
This repository was archived by the owner on Aug 18, 2021. It is now read-only.

Commit 1d3c0a3

Browse files
committed
update: README.md
Release v1.0.1
1 parent 0b830f7 commit 1d3c0a3

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

README.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
6767
This Is Latest Release
6868

69-
$version_release = 1.0.0
69+
$version_release = 1.0.1
7070

7171
What'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

0 commit comments

Comments
 (0)