Created
March 3, 2025 16:09
-
-
Save vitoksmile/6a42f3fd5b6f80001c21fdcf10a14c91 to your computer and use it in GitHub Desktop.
Mastering delays in Android
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Composable | |
fun TestComponent() { | |
val context = LocalContext.current | |
LifecycleEventEffect(Lifecycle.Event.ON_RESUME) { | |
delay(1.seconds) | |
Toast.makeText(context, "Hello, Medium", Toast.LENGTH_LONG).show() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment