Skip to content
This repository was archived by the owner on Aug 16, 2023. It is now read-only.
This repository was archived by the owner on Aug 16, 2023. It is now read-only.

@OnLifecycleEvent deprecated #88

@tugceaktepe

Description

@tugceaktepe

Dear Experts,

In step 4, maybe documentation can be update about that @OnLifecycleEvent is deprecated. Since Java 8 interfaces allow default implementations, we should update this annotation with DefaultLifecycleObserver or LifecycleEventObserver if our project Java target is 8 and above.

Codelab: https://developer.android.com/codelabs/android-lifecycles?index=..%2F..%2Findex#4:~:text=5.%20Step%204%20%2D%20Subscribe%20to%20Lifecycle%20Events
Ref: https://developer.android.com/reference/androidx/lifecycle/OnLifecycleEvent

Have a nice day. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions