Package 

Class ScreenSizeThumbnailFormatSelector

    • Method Summary

      Modifier and Type Method Description
      static ScreenSizeThumbnailFormatSelector create(Context context) Creates a new ScreenSizeThumbnailFormatSelector with a default factor of 0.5.
      static ScreenSizeThumbnailFormatSelector create(Context context, @FloatRange(from = 0.0, to = 1.0) float factor) The factor parameter represents a percentage of the screen width and screen height.
      PreviewThumbnailFormat select(@NonNull() List<PreviewThumbnailFormat> previewThumbnailFormatList) Selects a PreviewThumbnailFormat from a given list.
      • Methods inherited from class java.lang.Object

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

      • create

         static ScreenSizeThumbnailFormatSelector create(Context context, @FloatRange(from = 0.0, to = 1.0) float factor)

        The factor parameter represents a percentage of the screen width and screen height.

        Parameters:
        context - an Android Context.
        factor - of screen width and screen height which will be used to select the format.For example an instance with width = 1920, height = 1080 and factor = 0.5 isequivalent to an instance with width = 960, height = 540 and factor = 1.0.The accepted range is from 0.0 to 1.0 otherwise, the value is clamped.
      • select

        @NonNull() PreviewThumbnailFormat select(@NonNull() List<PreviewThumbnailFormat> previewThumbnailFormatList)

        Selects a PreviewThumbnailFormat from a given list.

        Parameters:
        previewThumbnailFormatList - the list of PreviewThumbnailFormat