AppMediaSource

sealed class AppMediaSource

A media object source, for all the handled source types.

Summary

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

Classes

ContentUri

data class ContentUri(val uri: Uri, val contentType: String) : AppMediaSource()

Media from a local content provider

RemoteUrl

data class RemoteUrl(val url: String, val contentType: String? = null) : AppMediaSource()

Media from a remote server

LocalFile

data class LocalFile(val file: File, val contentType: String) : AppMediaSource()

Media from a local file

Image

data class Image(val bitmap: Bitmap, val format: Bitmap.CompressFormat, val quality: Int) : AppMediaSource()

Media from a bitmap


If something needs to be added or if you find an error in our documentation, please let us know either on our GitHub or Discord.

Last updated on June 16, 2023