Lightlines
By new-silvermoon

android-viewmodel

new-silvermoon537 installs

Keep Android screen state and events separate.

What it does

Guides Android ViewModel implementation so screen state stays immutable to consumers and one-off events remain separate.

When to use it

Use when implementing Android ViewModels and managing UI state and one-off events.

How to use it

It changes how the agent implements Android ViewModels, assigning UI state and business logic to ViewModels and exposing immutable APIs.

What you provide

  • An existing project

Latest review

What you need · 1

The preferred explicit backing-field pattern uses Kotlin 2.3 with -Xexplicit-backing-fields or Kotlin 2.4+, where it is stable and recommended.


Access · 0

No additional actions listed.