Lambdas and Delegates

The following recipes will be covered in this chapter:

  • Click listeners using lambdas
  • Using lazy delegate in Kotlin
  • Using the observable delegate
  • Using vetoable delegate
  • Writing your own delegates
  • Using the lateinit modifier
  • Working with SharedPreferences
  • Creating a chain of multiple lets in Kotlin
  • Creating global variables