Class ScreenUtils


  • public class ScreenUtils
    extends Object
    Utility class that provides helper methods around the device screen
    Since:
    3.0.0
    • Constructor Detail

      • ScreenUtils

        public ScreenUtils()
    • Method Detail

      • getScreenSize

        public static Point getScreenSize​(@NonNull
                                          Context context)
        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