mediaStoreMediaDescriptor

fun mediaStoreMediaDescriptor(context: Context, contentValues: ContentValues, isVideo: Boolean = true, customData: List<Any> = emptyList()): UriMediaDescriptor(source)

Creates a media descriptor in the media android.content.ContentResolver.

Parameters

context

the context to infer container type from content uri

contentValues

the content values to create the media descriptor from

isVideo

true to target the Video MediaStore, false to target the Audio MediaStore

customData

custom data to attach to the media descriptor