- Currently working on Supergene co.
- 6 years of Android native app development
- Continuing study on clean architechure and 'comfortable' codes
Block or Report
Block or report victory316
Report abuse
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abusePinned
-
-
-
OOP-Playground
OOP-Playground PublicObject Oriented Programming Playground based on Android.
Kotlin
-
Lifecycle aware extensions.
Lifecycle aware extensions. 1fun Activity.doOnceOnLifecycle(state: Lifecycle.State, action: () -> Unit) {
2(this as? LifecycleOwner)?.lifecycleScope?.launch {
3when (state) {
4Lifecycle.State.CREATED -> withCreated {
5action.invoke()
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.