MediaResizer / pyxis.uzuki.live.mediaresizer.data / ResizeOption / Builder

Builder

class Builder

Constructors

<init>

Builder()

Functions

build

fun build(): ResizeOption

Build ResizeOption object.

setCallback

fun setCallback(callback: (Int, String) -> Unit): Builder

set callback for result. this methods use higher-order functions. do not use this methods in java, use setCallback instead.

fun setCallback(callback: F2<Int, String>): Builder

set callback for result. this methods use F2 interface. use setCallback in Kotlin instead.

setImageResizeOption

fun setImageResizeOption(imageResizeOption: ImageResizeOption): Builder

set ImageResizeOption class to resize image. set this methods when you use Image Resizing.

setMediaType

fun setMediaType(mediaType: MediaType): Builder

set media type to resize It have two options to set, default is MediaType.IMAGE see MediaType class to see all of available options.

setOutputPath

fun setOutputPath(outputPath: String): Builder

set output path for output file.

setTargetPath

fun setTargetPath(targetPath: String): Builder

set target path for input file.

setVideoResizeOption

fun setVideoResizeOption(videoResizeOption: VideoResizeOption): Builder

set VideoResizeOption class to resize video. set this methods when you use Video Resizing.