handler in kotlin to delay
snippet in kotlin

andoird kotlin delay

user6972

 Handler().postDelayed({
 //doSomethingHere()
 }, 1000)

handler in kotlin to delay

user2245

// Import
import android.os.Handler;

// Use
val handler = Handler()
handler.postDelayed({
     // do something after 1000ms
}, 1000)