R

Ravina • 3.59K Points
Extraordinary

Q. Which annotation helps avoid memory leaks with lifecycle-aware components?

  • (A) @AvoidLeak
  • (B) @MainThread
  • (C) @LifecycleAware
  • (D) @OnLifecycleEvent

Explanation by: Ravina
@OnLifecycleEvent is used with LifecycleObserver to respond to lifecycle changes.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.