ApplicationCache

abstract external class ApplicationCache : EventTarget (source)

Platform and version requirements: JS

Constructors

<init>

ApplicationCache()

Properties

oncached

open var oncached: (Event) -> dynamic

onchecking

open var onchecking: (Event) -> dynamic

ondownloading

open var ondownloading: (Event) -> dynamic

onerror

open var onerror: (Event) -> dynamic

onnoupdate

open var onnoupdate: (Event) -> dynamic

onobsolete

open var onobsolete: (Event) -> dynamic

onprogress

open var onprogress: (Event) -> dynamic

onupdateready

open var onupdateready: (Event) -> dynamic

status

open val status: Short

Functions

abort

fun abort()

swapCache

fun swapCache()

update

fun update()

Inherited Functions

addEventListener

fun addEventListener(
    type: String,
    callback: EventListener?,
    options: dynamic = definedExternally)
fun addEventListener(
    type: String,
    callback: (Event) -> Unit,
    options: dynamic = definedExternally)

dispatchEvent

fun dispatchEvent(event: Event): Boolean

removeEventListener

fun removeEventListener(
    type: String,
    callback: EventListener?,
    options: dynamic = definedExternally)
fun removeEventListener(
    type: String,
    callback: (Event) -> Unit,
    options: dynamic = definedExternally)

Companion Object Properties

CHECKING

val CHECKING: Short

DOWNLOADING

val DOWNLOADING: Short

IDLE

val IDLE: Short

OBSOLETE

val OBSOLETE: Short

UNCACHED

val UNCACHED: Short

UPDATEREADY

val UPDATEREADY: Short