Рет қаралды 17,526
Android Tutorial For Beginners - Learn how to use interceptors for passing dynamic header values with every request. Retrofit uses OkHttp behind the scenes. We need to create OkHttpClient to add interceptors. These interceptors help in adding headers to every request or you can add logging for every request using these interceptors. Interceptor is a powerful way to add dynamic values to your request object. Learn how to implement AuthInterceptor and OkHttpClient in this video.
Learn how to implement Retrofit object with OkHttpClient along with HILT. This video clearly explains how to define Network Module for HILT. How to define different functions inside your module to provide you both Authenticated and UnAuthenticated flow. Learn step by step - how to create a fully functional android app with simple example in Hindi.
Topics covered -
1. What is Interceptor in Retrofit?
2. How to implement Interceptor for Authentication Headers?
3. How to pass tokens in every request in retrofit android.
4. Create OkHttpClient and use it to create Retrofit Object
5. Implement all this using HILT
6. Complete Notes Android App Tutorial Hindi
Complete Dependency Injection Playlist Link -
• Dagger 2 - Dependency ...
Complete Android Architecture Components Playlist -
• Android Architecture C...
Beginner series in Android Playlist (Hindi) -
• Android Tutorials Step...
Kotlin Beginners Tutorial Series -
• Kotlin Beginner Tutori...
For more info - visit the below link
www.cheezycode.com
Source Code -
github.com/CheezyCode/YetAnot...
We are social. Follow us at -
Facebook - / cheezycode
Twitter - / cheezycode
Instagram - / cheezycode