Class DisplayUtils


  • public final class DisplayUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static android.util.Pair<java.lang.Integer,​java.lang.Integer> getAspectRatio​(int width, int height)  
      static long getDisplayRefreshNS​(android.content.Context context)  
      static int getDisplayRefreshRate​(android.content.Context context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getDisplayRefreshRate

        public static int getDisplayRefreshRate​(android.content.Context context)
      • getDisplayRefreshNS

        public static long getDisplayRefreshNS​(android.content.Context context)
      • getAspectRatio

        @NonNull
        public static android.util.Pair<java.lang.Integer,​java.lang.Integer> getAspectRatio​(int width,
                                                                                                  int height)