-
public final class ImageRequestsKt
-
-
Field Summary
Fields Modifier and Type Field Description private final static IntegervideoFrameIndexprivate final static IntegervideoFrameIndexprivate final static Extras.Key<Integer>videoFrameIndexprivate final static LongvideoFrameMicrosprivate final static LongvideoFrameMicrosprivate final static Extras.Key<Long>videoFrameMicrosprivate final static DoublevideoFramePercentprivate final static DoublevideoFramePercentprivate final static Extras.Key<Double>videoFramePercentprivate final static IntegervideoFrameOptionprivate final static IntegervideoFrameOptionprivate final static Extras.Key<Integer>videoFrameOption
-
Method Summary
Modifier and Type Method Description final IntegergetVideoFrameIndex()final IntegergetVideoFrameIndex()final Extras.Key<Integer>getVideoFrameIndex()final LonggetVideoFrameMicros()final LonggetVideoFrameMicros()final Extras.Key<Long>getVideoFrameMicros()final DoublegetVideoFramePercent()final DoublegetVideoFramePercent()final Extras.Key<Double>getVideoFramePercent()final IntegergetVideoFrameOption()final IntegergetVideoFrameOption()final Extras.Key<Integer>getVideoFrameOption()final static <ERROR CLASS>videoFrameIndex(ImageRequest.Builder $self, Integer frameIndex)Set the frame index to extract from a video. final static <ERROR CLASS>videoFrameMillis(ImageRequest.Builder $self, Long frameMillis)Set the time in milliseconds of the frame to extract from a video. final static <ERROR CLASS>videoFrameMicros(ImageRequest.Builder $self, Long frameMicros)Set the time in microseconds of the frame to extract from a video. 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. final static <ERROR CLASS>videoFrameOption(ImageRequest.Builder $self, Integer option)Set the option for how to decode the video frame. -
-
Method Detail
-
getVideoFrameIndex
@RequiresApi(value = 28) final Integer getVideoFrameIndex()
-
getVideoFrameIndex
@RequiresApi(value = 28) final Integer getVideoFrameIndex()
-
getVideoFrameIndex
@RequiresApi(value = 28) final Extras.Key<Integer> getVideoFrameIndex()
-
getVideoFrameMicros
final Long getVideoFrameMicros()
-
getVideoFrameMicros
final Long getVideoFrameMicros()
-
getVideoFrameMicros
final Extras.Key<Long> getVideoFrameMicros()
-
getVideoFramePercent
final Double getVideoFramePercent()
-
getVideoFramePercent
final Double getVideoFramePercent()
-
getVideoFramePercent
final Extras.Key<Double> getVideoFramePercent()
-
getVideoFrameOption
final Integer getVideoFrameOption()
-
getVideoFrameOption
final Integer getVideoFrameOption()
-
getVideoFrameOption
final Extras.Key<Integer> getVideoFrameOption()
-
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.
-
-
-
-