PickerViewModel

Extend this ViewModel to use FilePickerProvider

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
fun addDisposable(disposable: Disposable): Boolean
Link copied to clipboard
Link copied to clipboard
fun getFile(vararg mimeType: String = arrayOf("application/pdf"), permissions: List<PermissionsType> = listOf()): SingleLiveEvent<ResultObject<PickerResponse?>>

Gets one file from the gallery

Link copied to clipboard
fun getFiles(vararg mimeType: String = arrayOf("application/pdf"), permissions: List<PermissionsType> = listOf()): SingleLiveEvent<ResultObject<List<PickerResponse>>>

Gets multiple files from the gallery

Link copied to clipboard
fun getImage(observable: Observable<File>): SingleLiveEvent<String>
Link copied to clipboard
open fun getKoin(): Koin
Link copied to clipboard
fun getMultiplePhotos(maxPhotos: Int = 4, factory: MultimediaCompressorFactory = DefaultMultimediaCompressorFactory()): SingleLiveEvent<ResultObject<List<PickerResponse>>>

Gets multiple photos from the gallery

Link copied to clipboard
fun getMultipleVideos(limit: Int = 4, factory: MultimediaCompressorFactory = DefaultMultimediaCompressorFactory()): SingleLiveEvent<ResultObject<List<PickerResponse>>>

Gets multiple videos from the gallery

Link copied to clipboard
fun getOnePhoto(factory: MultimediaCompressorFactory = DefaultMultimediaCompressorFactory()): SingleLiveEvent<ResultObject<PickerResponse?>>

Gets one photo from the gallery

Link copied to clipboard
fun getOneVideo(factory: MultimediaCompressorFactory = DefaultMultimediaCompressorFactory()): SingleLiveEvent<ResultObject<PickerResponse?>>

Gets one video from the gallery

Link copied to clipboard
fun getPhotoFromCamera(factory: MultimediaCompressorFactory = DefaultMultimediaCompressorFactory()): SingleLiveEvent<ResultObject<PickerResponse?>>

Gets one photo from camera

Link copied to clipboard
fun getVideoFromCamera(factory: MultimediaCompressorFactory = DefaultMultimediaCompressorFactory()): SingleLiveEvent<ResultObject<PickerResponse?>>

Gets one video from camera

Link copied to clipboard
fun openCameraCustom(factory: MultimediaCompressorFactory = DefaultMultimediaCompressorFactory()): SingleLiveEvent<ResultObject<CameraCustomResponse?>>