title: How to get network activity spinner status?
body: <p>I have an app in which if the data is loading, i want to make a button unclickable. If there is no network activity it means that since all data has been loaded, the button should then be clickable. </p>
  
  <p>you can see the spinner here . top left.</p>
  
  <p><a href="http://i.imgur.com/teWmZ.png" rel="nofollow">http://i.imgur.com/teWmZ.png</a></p>
  
  <p>How should the if statement look like if b.enabled = 0; is what makes the button unclickabl and making it 1 is clickable ?</p>
  
  <p>what do I put in
      if (  )</p>