Package com.castlabs.android.utils
Class ScreenUtils
java.lang.Object
com.castlabs.android.utils.ScreenUtils
Utility class that provides helper methods around the device screen
- Since:
- 3.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Point
getScreenSize
(Context context) Returns the dimensions of the device screen in pixel.
-
Constructor Details
-
ScreenUtils
public ScreenUtils()
-
-
Method Details
-
getScreenSize
Returns the dimensions of the device screen in pixel. Please note that this method ignores the current orientation of the device.- Parameters:
context
- The context- Returns:
- Point that holds the width and height of the screen in pixel
-