kvision / pl.treksoft.kvision.cordova / MediaFile

MediaFile

external class MediaFile

Media file information class.

Constructors

<init>

MediaFile()

Media file information class.

Properties

fullPath

val fullPath: String

lastModifiedDate

val lastModifiedDate: Number

name

val name: String

size

val size: Number

type

val type: String

Functions

getFormatData

fun getFormatData(successCallback: (MediaFileData) -> Unit, errorCallback: (() -> Unit)? = definedExternally): Unit

Extension Functions

createInstance

fun <T> Any?.createInstance(vararg args: dynamic): T

Helper function for creating JavaScript objects from dynamic constructors.

getFormatData

suspend fun MediaFile.getFormatData(): MediaFileData?

Get details for the given file.