getWidthInPixels

fun getWidthInPixels(context: Context): Int

Return the pixel width calculated on current device.

Return

the pixel width calculated on current device.

Parameters

context

The context used by the current app.