Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Kotlin Multiplataforma: Compartilhando código e...

Kotlin Multiplataforma: Compartilhando código entre Android e iOS

Apresentada na trilha Kotlin do TDC São Paulo 2019

Rafael Toledo

July 19, 2019
Tweet

More Decks by Rafael Toledo

Other Decks in Programming

Transcript

  1. // Common expect val mainThread: Boolean // Android actual val

    mainThread: Boolean get() = Looper.myLooper() === Looper.getMainLooper() // iOS actual val mainThread: Boolean get() = NSThread.isMainThread()