getScreenSize

open fun getScreenSize(context: Activity): Pair<Integer, Integer>

Get device screen size in pixels.

Return

A pair of width and height pixel dimensions.

Parameters

context

Activity context.