sealed class AppMediaSource
A media object source, for all the handled source types.
Classes | |
---|---|
ContentUri | Media from a local content provider |
RemoteUrl | Media from a remote server |
LocalFile | Media from a local file |
Image | Media from a bitmap |
data class ContentUri(val uri: Uri, val contentType: String) : AppMediaSource()
Media from a local content provider
data class RemoteUrl(val url: String, val contentType: String? = null) : AppMediaSource()
Media from a remote server
data class LocalFile(val file: File, val contentType: String) : AppMediaSource()
Media from a local file
data class Image(val bitmap: Bitmap, val format: Bitmap.CompressFormat, val quality: Int) : AppMediaSource()
Media from a bitmap