PickerViewModel
Extend this ViewModel to use FilePickerProvider
Inheritors
Functions
Link copied to clipboard
Link copied to clipboard
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
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?>>