# multiplatform

Brendan Weinstein

01/06/2020, 6:16 AM
One selling point for winning over product managers on multiplatform is a far higher probability of consistent analytic events cross platform. Imagine a ViewController/Activity that has a
fun render(state: ViewState)
and observes
's emitted by a StateMachine. The StateMachine is shared in the common module. If the analytics events are fired in the StateMachine, then the developer who implements the View would have to avoid using the shared StateMachine or use it in a way that breaks functionality in order to make analytics events inconsistent, which is a loose coupling and better than no coupling.
👍 3

Cristián Arenas

01/07/2020, 7:38 PM
That’s exactly what I’m using this for! I have a state machine that emits analytics events.