In this video, get a brief refresher of the following aspects of working with Kotlin: functions, expressions, and variables.
- [Narrator] Let's take a quick look at Kotlin Syntax,…and we're going to start with functions.…For this, we're inside of our functions file,…and we're going to look at two scenarios:…basic function creation, and execution.…Then we'll also focus on how we can use default values…in our function parameters.…So the first thing we're going to do…is come to the top of the file and declare a function.…Now in Kotlin,…you don't have to declare a function inside of a class.…It can also be at the top level of a file,…which is what we're going to do now.…
So we're going to create a function, called 'multiply,'…and we're going to start with the 'fun' keyword…because this is how you declare a function.…And then we're going to call it 'multiply.'…And our function is going to take into parameters.…The left upper Int, which is an integer,…and then the right, which is also going to be an integer.…Notice how the type of the variable…comes after the name, and then a colon.…Now, this function is going to return an integer as well,…
- What Kotlin has to offer
- Working with lambdas
- Common Android extension functions
- Kotlin Android Extensions overview
- Making use of the Anko library
- Working with coroutines
- Nullability and collections
Skill Level Intermediate
Android App Development: Data Persistence Librarieswith Annyce Davis3h 59m Intermediate
Developing AWS Lambda Functions with Kotlinwith Troy Miles1h 55m Intermediate
1. Kotlin Overview
2. Extension Functions and Properties
3. Incorporating Anko
4. Advanced Anko
5. Working with Collections
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.