0

I have code to get the bounds of the area associated with this window:

context.getSystemService(WindowManager::class.java).currentWindowMetrics.bounds

But this code requires API level 30, my min is 21.

Is it possible to do the same but for api 21 ?

Please, help me.

testivanivan
  • 967
  • 13
  • 36

0 Answers0