title: Where is the best place to check for internet connection in MVVM?
body: <p>I have an <code>apiClass</code> which makes all the network calls
  and I was thinking my options are these:</p>
  
  <ol>
  <li><p>do the check inside the <code>activity</code>/<code>fragment</code></p></li>
  <li><p>do the check inside the <code>apiClient</code> class</p></li>
  </ol>
  
  <p>I'm sure there is a better alternative.</p>
  
  <p>EDIT</p>
  
  <p><a href="https://stackoverflow.com/a/22595825/6505084">This</a> answer suggests my second option. Is there a better approach?</p>