is now LinkedIn Learning!

To access courses again, please join LinkedIn Learning

All the same content you know and love

Plus, personalized course recommendations tailored just for you

All the same access to your Lynda learning history and certifications

Try LinkedIn Learning for free
Questions? Visit our help center.
Skip navigation

Manage menus with when

Manage menus with when: Android Development Tips
Manage menus with when: Android Development Tips

Kotlin replaces the Java switch statement with the keyword when. Both when and the if keyword can be used in Kotlin either as a statement or as an expression that returns a value. This ability to use a conditional keyword as an expression makes it easy to evaluate multiple options and execute the appropriate code. So, for example, if you have an options or navigation menu, you can make very concise and readable code that dispatches a request to the appropriate function.

Resume Transcript Auto-Scroll
Skill Level Intermediate
5h 24m
Show More Show Less

Q: Why can't I earn a Certificate of Completion for this course?

A: We publish a new tutorial or tutorials for this course on a regular basis. We are unable to offer a Certificate of Completion because it is an ever-evolving course that is not designed to be completed. Check back often for new movies.

Skills covered in this course
Developer Mobile Apps Android

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start My Free Month

Start your free month on LinkedIn Learning, which now features 100% of courses. Develop in-demand skills with access to thousands of expert-led courses on business, tech and creative topics.

Start My Free Month

You are now leaving and will be automatically redirected to LinkedIn Learning to access your learning content.