kvision / pl.treksoft.kvision.cordova / MediaFile

MediaFile

(js) class MediaFile

Media file information class.

Constructors

(js)

<init>

Media file information class.

MediaFile()

Properties

(js)

fullPath

val fullPath: String
(js)

lastModifiedDate

val lastModifiedDate: Number
(js)

name

val name: String
(js)

size

val size: Number
(js)

type

val type: String

Functions

(js)

getFormatData

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

Extension Functions

(js)

getFormatData

Get details for the given file.

suspend fun MediaFile.getFormatData(): MediaFileData?