MediaFile

external class MediaFile

Media file information class.

Constructors

MediaFile
Link copied to clipboard
js
fun MediaFile()

Functions

getFormatData
Link copied to clipboard
js
fun getFormatData(successCallback: (MediaFileData) -> Unit, errorCallback: () -> Unit? = definedExternally)

Properties

fullPath
Link copied to clipboard
js
val fullPath: String
lastModifiedDate
Link copied to clipboard
js
val lastModifiedDate: Number
name
Link copied to clipboard
js
val name: String
size
Link copied to clipboard
js
val size: Number
type
Link copied to clipboard
js
val type: String

Extensions

getFormatData
Link copied to clipboard
js
suspend fun MediaFile.getFormatData(): MediaFileData?
Get details for the given file.