Interface UILayoutGuideAspectFitting


  • public interface UILayoutGuideAspectFitting
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      double aspectRatio()
      Update the aspect ratio (width / height) for the given content Defaults to 1.0.
      void setAspectRatio​(double value)
      Update the aspect ratio (width / height) for the given content Defaults to 1.0.
    • Method Detail

      • aspectRatio

        double aspectRatio()
        Update the aspect ratio (width / height) for the given content Defaults to 1.0. Must be > 0.0 and values may be clamped within a reasonable range of approximately 1:100 to 100:1.
      • setAspectRatio

        void setAspectRatio​(double value)
        Update the aspect ratio (width / height) for the given content Defaults to 1.0. Must be > 0.0 and values may be clamped within a reasonable range of approximately 1:100 to 100:1.