title: display.getRealMetrics() is deprecated
body: <p>I was using getRealMetrics() method and came to know that it is deprecated</p>
  <pre><code>val display = this.display
  display?.getRealMetrics(outMetrics)
  </code></pre>
  <p>anybody know what is the alternative.</p>