It's an introduction to android but fixing common problems that Android developers have and how to resolve it using kotlin. it's not another kotlin introduction talk.
for Android & iOS. Mastering Git. Advanced mobile development. Testing for android & iOS. Architecture, Patterns and principles for Android & iOS. Companies For Everybody Next open: Testing Training 23 Jun. Kotlin Training 20 Feb. Swift Training 26 Mar. Arch Training 3 Apr.
Int { delay(1000L) return 29 } val time = measureTimeMillis { val one = doSomethingUsefulOne() val two = doSomethingUsefulTwo() println("${one + two}") } println("$time ms”) [“42”, “time 2017”] Kotlin Corrutines suspend fun doSomethingUsefulOne(): Int { delay(1000L) return 13 } suspend fun doSomethingUsefulTwo(): Int { delay(1000L) return 29 } val time = measureTimeMillis { val one = async { doSomethingUsefulOne() } val two = async { doSomethingUsefulTwo() } println("${one.await() + two.await()}") } println("$time ms") [“42”, “time 1017”]
-> R.string.error_not_internet_message is NotIndexFoundDomainError -> R.string.error_superhero_not_found_message is UnknownDomainError -> R.string.error_unknown_message } Kotlin sealed class DomainError object NotInternetDomainError : DomainError() data class UnknownDomainError( val errorMessage: String = "Unknown Error") : DomainError() data class NotIndexFoundDomainError(val key: String) : DomainError() Compile error!!