Android Design Patterns: The Observer Pattern

What Is the Observer Pattern? The Observer Pattern is a software design pattern that establishes a one-to-many dependency between objects. Anytime the state of one of the objects (the « subject » or « observable ») changes, all of the other objects (« observers ») that depend on it are notified. Let’s use the example of users that have subscribed to…

Details