Safe Args with Navigation Component - Android Studio Tutorial

preview_player
Показать описание
🏆 My Online Courses
⭐Discount Coupon: LAUNCH-STEVDZA-SAN

🐱‍👤 Wanna become a member? Join!

📸 Instagram

The Navigation component has a Gradle plugin called Safe Args that generates simple object and builder classes for type-safe navigation and access to any associated arguments. Safe Args is strongly recommended for navigating and passing data, because it ensures type-safety.

  *** Add Dependency ***
dependencies {
def nav_version = "2.3.0-alpha04"

}

*** Compile Options ***
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

kotlinOptions {
}

 *** Apply Plugin (Java) ***

*** Apply Plugin (Kotlin) ***
Рекомендации по теме
Комментарии
Автор

This is the best, short, straight to the point explanation I have seen on the subject.
Thank you very much, you earned a new supporter

guyyakobovich
Автор

After half a day looking to solve my problem, you saved me. Thank you!

MrDoge-ypus
Автор

Great explanation! I got stuck in one point, couldn't see ...FragmentArgs class - and saw in video, just need to rebuild project. Thanks a lot!

pawechilczuk
Автор

Thank you so much! You have no idea how your tutorials have helped us, making easy tasks that looked daunting and impossible. All the best.

christianmethot
Автор

Very useful tutorial, thank you Stevdza-San

unitubetv
Автор

Really great tutorial, super concise. Thank you!

lucye
Автор

Stefane brate zivio sto godina!!! Ovo mi treba!! Imas li ono nesto tipa buyMeCoffee ili patreon ? Zasluzio si pivo ili dva ili kafu, štagod ti više paše :D

wearedoingsomething
Автор

the Gradle version is new so I don't know how to add Safe Args. Can you help me?

quybuihai
Автор

Am having challenges syncing the dependencies

platinumphonesandcomputers
Автор

Thank You, Thanks for making these amazing videos <3

xtanion
Автор

Do you sell courses or personalized tutoring? I really like the way you teach, simple, concsice and very good!

ampo
Автор

sir how to pass image from first fragment to second fragment , in your example you use int to pass the number

rafidnagaradharmakusuma
Автор

Nice Explanation, I have one question though how to pass an object by using safe arg?

poonammishra
Автор

You explain really great. Please make a video on MVVM Architecture.

ronneyismael
Автор

Hi, Stevdza.
Great video, right to the point.
Is there a video example showing how to pass more than 1 value with safe args?
I would really appreciate this, because i'm struggling with this issue on my project.
Thank you so much!!

tarsilacostalonga
Автор

Awesome tutorial but I have one question. What if I need to pass two parameters insted of one. Like Integer as well as String. Without passing object. It is possible??

aliappdevelop
Автор

my app dont generate de clasess, do you know why?

Mtorres
Автор

Hey, man, thanks! You are cool! Im from Belarus and i dont know English, but im anderstand you and im anderstent how do what you tell!!!! Thanks, man!!!!

Alexwith
Автор

i have a question, why do we use safe args if we have viewmodel-liveData ?. thanks

TriNguyen-ymhf
Автор

even after adding toString the app crashes there is something wrong with the code

MobileMLHub
visit shbcf.ru