getScreenSizeApi31

@RequiresApi(value = 31)
private fun getScreenSizeApi31(context: Context): Pair<Int, Int>

Get the ScreenSize of your device in api 31.

Return

ScreenSize of your device.