Class ScreenUtils

java.lang.Object
com.castlabs.android.utils.ScreenUtils

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

    • ScreenUtils

      public ScreenUtils()
  • Method Details

    • 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