FetchEvent

open external class FetchEvent(type: String, eventInitDict: FetchEventInit) : ExtendableEvent

Exposes the JavaScript FetchEvent to Kotlin

Constructors

FetchEvent
Link copied to clipboard
fun FetchEvent(type: String, eventInitDict: FetchEventInit)

Types

Companion
Link copied to clipboard
object Companion

Functions

composedPath
Link copied to clipboard
fun composedPath(): Array<EventTarget>
initEvent
Link copied to clipboard
fun initEvent(type: String, bubbles: Boolean, cancelable: Boolean)
preventDefault
Link copied to clipboard
fun preventDefault()
respondWith
Link copied to clipboard
fun respondWith(r: Promise<Response>)
stopImmediatePropagation
Link copied to clipboard
fun stopImmediatePropagation()
stopPropagation
Link copied to clipboard
fun stopPropagation()
waitUntil
Link copied to clipboard
fun waitUntil(f: Promise<Any?>)

Properties

bubbles
Link copied to clipboard
open val bubbles: Boolean
cancelable
Link copied to clipboard
open val cancelable: Boolean
clientId
Link copied to clipboard
open val clientId: String?
composed
Link copied to clipboard
open val composed: Boolean
currentTarget
Link copied to clipboard
open val currentTarget: EventTarget?
defaultPrevented
Link copied to clipboard
open val defaultPrevented: Boolean
eventPhase
Link copied to clipboard
open val eventPhase: Short
isReload
Link copied to clipboard
open val isReload: Boolean
isTrusted
Link copied to clipboard
open val isTrusted: Boolean
request
Link copied to clipboard
open val request: Request
target
Link copied to clipboard
open val target: EventTarget?
timeStamp
Link copied to clipboard
open val timeStamp: Number
type
Link copied to clipboard
open val type: String