Android Kotlin 기초 lifecycle
본문 바로가기

- Kotlin

Android Kotlin 기초 lifecycle

728x90
반응형

 

override fun onStart() {
    super.onStart()
   Log.d(TAG, "MainActivity - onStart() called")
}

override fun onResume() {
    super.onResume()
    Log.d(TAG, "MainActivity - onResume() called")
}

override fun onPause() {
    super.onPause()
    Log.d(TAG, "MainActivity - onPause() called")
}

override fun onStop() {
    super.onStop()
    Log.d(TAG, "MainActivity - onStop() called")
}

override fun onDestroy() {
    super.onDestroy()
    Log.d(TAG, "MainActivity - onDestroy() called")
}

728x90
반응형

'- Kotlin' 카테고리의 다른 글

Android Kotlin 기초 gradent 화면  (0) 2022.09.23
Android Kotlin 기초  (0) 2022.09.23