Package 

Class ImageRequestsKt

    • Method Detail

      • videoFrameIndex

        @RequiresApi(value = 28) final static <ERROR CLASS> videoFrameIndex(ImageRequest.Builder $self, Integer frameIndex)

        Set the frame index to extract from a video.

        When both videoFrameIndex and other videoFrame-prefixed properties are set, videoFrameIndex will take precedence.

      • videoFrameMillis

         final static <ERROR CLASS> videoFrameMillis(ImageRequest.Builder $self, Long frameMillis)

        Set the time in milliseconds of the frame to extract from a video.

        When both videoFrameMicros (or videoFrameMillis) and videoFramePercent are set, videoFrameMicros (or videoFrameMillis) will take precedence.

      • videoFrameMicros

         final static <ERROR CLASS> videoFrameMicros(ImageRequest.Builder $self, Long frameMicros)

        Set the time in microseconds of the frame to extract from a video.

        When both videoFrameMicros (or videoFrameMillis) and videoFramePercent are set, videoFrameMicros (or videoFrameMillis) will take precedence.

      • videoFramePercent

         final static <ERROR CLASS> videoFramePercent(ImageRequest.Builder $self, Double framePercent)

        Set the time as a percentage of the total duration for the frame to extract from a video.

        When both videoFrameMicros (or videoFrameMillis) and videoFramePercent are set, videoFrameMicros (or videoFrameMillis) will take precedence.

      • videoFrameOption

         final static <ERROR CLASS> videoFrameOption(ImageRequest.Builder $self, Integer option)

        Set the option for how to decode the video frame.

        Must be one of OPTION_PREVIOUS_SYNC, OPTION_NEXT_SYNC, OPTION_CLOSEST_SYNC, OPTION_CLOSEST.