Android Jetpack Compose State Concept - Hoisting & Unidirectional Flow | CheezyCode Hindi

Cheezy Code April 8, 2023
Video Thumbnail
Cheezy Code Logo

Cheezy Code

View Channel

About

We are young working professionals from IT industry. We thought of an idea to share our technology related findings to others. This will not only help others but would be beneficial for us as well, because instead of making notes on our notepad we are making it here on cheezycode.com :)

Video Description

Learn Jetpack Compose in Android. Learn how state works in Jetpack Compose with a simple example that implements a counter functionality. Learn how Mutable State triggers UI updates in Jetpack Compose. Jetpack Compose works on Observable State that emits new UI whenever it changes. Learn what is state hoisting in Compose along with unidirection flow of data and events. Data flows downwards whereas events flow upwards. Learn what is difference between Remember and RememberSaveable with example. Learn how rememberSaveable saves your value using Bundle object in Android. Bundle objects are used when any configuration changes happen such as Rotation. To store values across rotations - rememberSaveable is used. For custom object stored inside state object, parcelable objects are required. To make an object parcelable - implement Parcelable Interface. Although as a best practice, ViewModels are used to store state object. Learn step by step on how to use these Composable functions along with the best practice. Everything is explained in Hindi (हिन्दी) Topics covered - 1. What is State Object? mutableStateOf example 2. remember vs rememberSaveable 3. State Hoisting with Example 4. Unidirectional Flow in Jetpack Compose 5. Stateless vs StateFul Composables. Kotlin Flows Playlist - https://www.youtube.com/playlist?list=PLRKyZvuMYSIPJ84lXQSHMn8P-0J8jW5YT Jetpack Paging Tutorial - https://www.youtube.com/playlist?list=PLRKyZvuMYSIPci119n2gt_kq1GU-PAYRk Complete Dependency Injection Playlist Link - https://www.youtube.com/playlist?list=PLRKyZvuMYSIPwjYw1bt_7u7nEwe6vATQd Complete Android Architecture Components Playlist - https://www.youtube.com/playlist?list=PLRKyZvuMYSIO0jLgj8g6sADnD0IBaWaw2 Beginner series in Android Playlist (Hindi) - https://www.youtube.com/playlist?list=PLRKyZvuMYSIN9sVZTfDm4CTdTAzDQyLJU Kotlin Beginners Tutorial Series - https://www.youtube.com/playlist?list=PLRKyZvuMYSIMW3-rSOGCkPlO1z_IYJy3G For more info - visit the below link http://www.cheezycode.com We are social. Follow us at - Facebook - http://www.facebook.com/cheezycode Twitter - http://www.twitter.com/cheezycode Instagram - https://www.instagram.com/cheezycode/

You May Also Like

Boost Your Android Dev Setup

AI-recommended products based on this video

Loading...
Wireless Charger for Samsung - NANAMI 3 in 1 Charging Station for Multiple Devices,Fast Charger Stand Dock for Galaxy S25 S24 S23 Ultra S22 S21 S20 Z Flip Fold,Galaxy Watch 5/5 Pro/4/3,Galaxy Buds Pro

Wireless Charger for Samsung - NANAMI 3 in 1 Charging Station for Multiple Devices,Fast Charger Stand Dock for Galaxy S25 S24 S23 Ultra S22 S21 S20 Z Flip Fold,Galaxy Watch 5/5 Pro/4/3,Galaxy Buds Pro

(2,272)
$43.99
PrimeFREE delivery Sat, Jun 14
200+ bought in past month
Loading...
45W Super Fast Charger USBC Charger, 2Pack 10FT Samsung Charger Fast Charging Cord Cable& Samsung Type C Charger Block for Galaxy S25 S24 S23 S22 S21 Ultra/Plus, Tab S10 S9 S8 S7,iPad,Android Phone

45W Super Fast Charger USBC Charger, 2Pack 10FT Samsung Charger Fast Charging Cord Cable& Samsung Type C Charger Block for Galaxy S25 S24 S23 S22 S21 Ultra/Plus, Tab S10 S9 S8 S7,iPad,Android Phone

(52)
$22.79
FREE delivery Fri, Oct 3 on your first order
1K+ bought in past month
Loading...
Google Pixel Buds Pro 2 - Noise Canceling Earbuds - Up to 31 Hour Battery Life with Charging Case - Bluetooth Headphones - Compatible with Android - Hazel

Google Pixel Buds Pro 2 - Noise Canceling Earbuds - Up to 31 Hour Battery Life with Charging Case - Bluetooth Headphones - Compatible with Android - Hazel

(183)
199.99
PrimeFREE delivery Saturday, June 14
400+ bought in past month
Loading...
Car Carplay Woven Cable for iPhone 16 15 3.3FT USB A to USB C 3.2 Gen 2 Carplay Adapter Wire for iPhone 16 15 Pro Max, iPad Pro/Air, Samsung Galaxy S25/S24/S23/S22/S21 Google Pixel, Car Charger Cable

Car Carplay Woven Cable for iPhone 16 15 3.3FT USB A to USB C 3.2 Gen 2 Carplay Adapter Wire for iPhone 16 15 Pro Max, iPad Pro/Air, Samsung Galaxy S25/S24/S23/S22/S21 Google Pixel, Car Charger Cable

(213)
$12.99
FREE delivery Sat, Jun 14 on your first order
100+ bought in past month
Loading...
INIU 45W Power Bank, Ultra Small 10000mAh Portable Charger, USB C in&Out Fast Charging Battery Pack, Travel External Phone Powerbank Compatible with iPhone 16 15 Samsung S25 S24 Google Pixel iPad etc

INIU 45W Power Bank, Ultra Small 10000mAh Portable Charger, USB C in&Out Fast Charging Battery Pack, Travel External Phone Powerbank Compatible with iPhone 16 15 Samsung S25 S24 Google Pixel iPad etc

(520)
$41.42
PrimeFREE delivery Sat, Jun 14
500+ bought in past month
Loading...
Anker 332 USB-C Hub (5-in-1) with 4K HDMI Display, 5Gbps - and 2 5Gbps USB-A Data Ports and for MacBook Pro, MacBook Air, Dell XPS, Lenovo Thinkpad, HP Laptops and More

Anker 332 USB-C Hub (5-in-1) with 4K HDMI Display, 5Gbps - and 2 5Gbps USB-A Data Ports and for MacBook Pro, MacBook Air, Dell XPS, Lenovo Thinkpad, HP Laptops and More

(11,639)
$23.99
FREE delivery Sat, Jun 14 on your first order
1K+ bought in past month
Loading...
Logitech G203 Wired Gaming Mouse, 8,000 DPI, Rainbow Optical Effect LIGHTSYNC RGB, 6 Programmable Buttons, On-Board Memory, Screen Mapping, PC/Mac Computer and Laptop Compatible - Black
Best Seller

Logitech G203 Wired Gaming Mouse, 8,000 DPI, Rainbow Optical Effect LIGHTSYNC RGB, 6 Programmable Buttons, On-Board Memory, Screen Mapping, PC/Mac Computer and Laptop Compatible - Black

(17,871)
$27.98$22.38
FREE delivery Tue, Oct 14 on your first order
500+ bought in past month
Loading...
Logitech G305 LIGHTSPEED Wireless Gaming Mouse, Hero 12K Sensor, 12,000 DPI, Lightweight, 6 Programmable Buttons, 250h Battery Life, On-Board Memory, PC/Mac - Black

Logitech G305 LIGHTSPEED Wireless Gaming Mouse, Hero 12K Sensor, 12,000 DPI, Lightweight, 6 Programmable Buttons, 250h Battery Life, On-Board Memory, PC/Mac - Black

(21,223)
$44.98
FREE delivery Tue, Oct 14
1K+ bought in past month
Loading...
ASUS Zenbook A14; Copilot+ PC, Ultrathin Laptop, 14” WUXGA OLED, Snapdragon® X Processor, 32 GB Memory, 1TB SSD, Wi-Fi 6E, Iceland Gray, UX3407QA-DS51-CB

ASUS Zenbook A14; Copilot+ PC, Ultrathin Laptop, 14” WUXGA OLED, Snapdragon® X Processor, 32 GB Memory, 1TB SSD, Wi-Fi 6E, Iceland Gray, UX3407QA-DS51-CB

(2)
$1,497.98
FREE delivery Wed, Jun 18
Loading...
Razer BlackShark V2 X Gaming Headset: 50mm Drivers - Cardioid Mic - Memory Foam Cushion - Lightweight- Comfortable, Noise Isolating Earcups - for PC, PS4, PS5, Switch - 3.5mm Audio Jack - Black ECOLOGO

Razer BlackShark V2 X Gaming Headset: 50mm Drivers - Cardioid Mic - Memory Foam Cushion - Lightweight- Comfortable, Noise Isolating Earcups - for PC, PS4, PS5, Switch - 3.5mm Audio Jack - Black ECOLOGO

(16,830)
$47.98$38.38
FREE delivery Sat, Nov 15
1K+ bought in past month
Loading...
Razer Universal Quick Charging Stand for Xbox Series X|S: Magnetic Secure Charging - Matches Forza Horizon 5 Limited Edition Xbox Wireless Controller - USB Powered - (Controller Sold Separately)

Razer Universal Quick Charging Stand for Xbox Series X|S: Magnetic Secure Charging - Matches Forza Horizon 5 Limited Edition Xbox Wireless Controller - USB Powered - (Controller Sold Separately)

(1,103)
$52.27$33.70
PrimeFREE delivery Sat, Jun 14
Loading...
Ear Wax Removal, Ear Cleaner with 8 Pcs Ear Set, Ear Wax Removal Kit, 1296P HD Endoscope with 6 LED Lights, Kids Adults Ear Cleaning Gift, Compatible with iPhone & Android Smart Phones

Ear Wax Removal, Ear Cleaner with 8 Pcs Ear Set, Ear Wax Removal Kit, 1296P HD Endoscope with 6 LED Lights, Kids Adults Ear Cleaning Gift, Compatible with iPhone & Android Smart Phones

(56)
$24.99
FREE delivery Tue, Nov 4 on your first order
Loading...
Ear Wax Removal, Ear Cleaner Ear Wax Removal Kit, 1296P HD Endoscope with 6 LED Lights, Kids Adults Ear Cleaning Gift, Compatible with iPhone & Android Smart Phones

Ear Wax Removal, Ear Cleaner Ear Wax Removal Kit, 1296P HD Endoscope with 6 LED Lights, Kids Adults Ear Cleaning Gift, Compatible with iPhone & Android Smart Phones

(124)
$29.99
FREE delivery Wed, Sep 3 on your first order
1K+ bought in past month