As the title, is there any way to call a function after delay (1 second for example) in Kotlin?
Kotlin
If you are in a fragment with viewModel scope you can use Kotlin coroutines:
myViewModel.viewModelScope.launch { delay(2000) // DoSomething() }