MediaRef

data class MediaRef(val id: Long, val uri: Uri, val mimeType: String, val isVideo: Boolean, val takenAt: Long, val durationMs: Long, val modified: Long, val name: String = "")(source)

One photo or video, as the indexers and readers need it.

Constructors

Link copied to clipboard
constructor(id: Long, uri: Uri, mimeType: String, isVideo: Boolean, takenAt: Long, durationMs: Long, modified: Long, name: String = "")

Properties

Link copied to clipboard

0 when unknown; read from the file then.

Link copied to clipboard
val id: Long

Stable for the life of the file, e.g. its MediaStore id. Every index is keyed by it.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Changes whenever the file does (DATE_MODIFIED, seconds): a changed file is indexed again.

Link copied to clipboard

File name, for logs.

Link copied to clipboard

Epoch millis: when it was taken. Newest are indexed first.

Link copied to clipboard
val uri: Uri