이제 Android 11 개발자 프리뷰를 사용할 수 있습니다. 테스트해 보고 의견을 공유하세요.

Event

class Event
kotlin.Any
   ↳ kotlin.Enum<androidx.lifecycle.Lifecycle.Event>
   ↳ androidx.lifecycle.Lifecycle.Event

Summary

Enum values

An Event constant that can be used to match all events.

Constant for onCreate event of the LifecycleOwner.

Constant for onDestroy event of the LifecycleOwner.

Constant for onPause event of the LifecycleOwner.

Constant for onResume event of the LifecycleOwner.

Constant for onStart event of the LifecycleOwner.

Constant for onStop event of the LifecycleOwner.

Enum values

ON_ANY

enum val ON_ANY : Lifecycle.Event

An Event constant that can be used to match all events.

ON_CREATE

enum val ON_CREATE : Lifecycle.Event

Constant for onCreate event of the LifecycleOwner.

ON_DESTROY

enum val ON_DESTROY : Lifecycle.Event

Constant for onDestroy event of the LifecycleOwner.

ON_PAUSE

enum val ON_PAUSE : Lifecycle.Event

Constant for onPause event of the LifecycleOwner.

ON_RESUME

enum val ON_RESUME : Lifecycle.Event

Constant for onResume event of the LifecycleOwner.

ON_START

enum val ON_START : Lifecycle.Event

Constant for onStart event of the LifecycleOwner.

ON_STOP

enum val ON_STOP : Lifecycle.Event

Constant for onStop event of the LifecycleOwner.