DEV Community

Cover image for A quick visualization of Android MVVM with a Service
Tristan Elliott
Tristan Elliott

Posted on

A quick visualization of Android MVVM with a Service

Introduction

  • This is just a quick little drawing I made to help myself visualize how a Service is going to work inside of the MVVM Architecture

My app on the Google play store

The Visualization

MVVM architecture with a Service

  • A brief explanation is this. Basically, a Service really exists out side of the typical MVVM Architecture pattern. When a Service gets created it does not adhere to the same boundaries as viewmodels bound to a Activity or Fragment. It only interacts with the data layer by sending it data, which then gets emitted to a hot flow and that hot flow then triggers a response from the ViewModel and UI

Top comments (0)