title: What is the use of @RequiresApi(Build.VERSION_CODES.M) before a method?
body: <p>What is the use of <code>@RequiresApi(Build.VERSION_CODES.M)</code> when it is in front of a method?</p>
  <p>I need it to call <code>connectivityManager.activeNetwork</code></p>