kvision / pl.treksoft.kvision.electron / Protocol

Protocol

(js) interface Protocol : EventEmitter

Functions

(js)

interceptBufferProtocol

abstract fun interceptBufferProtocol(scheme: String, handler: (request: InterceptBufferProtocolRequest, callback: (buffer: Buffer?) -> Unit) -> Unit, completion: ((error: Error) -> Unit)? = definedExternally): Unit
(js)

interceptFileProtocol

abstract fun interceptFileProtocol(scheme: String, handler: (request: InterceptFileProtocolRequest, callback: (filePath: String) -> Unit) -> Unit, completion: ((error: Error) -> Unit)? = definedExternally): Unit
(js)

interceptHttpProtocol

abstract fun interceptHttpProtocol(scheme: String, handler: (request: InterceptHttpProtocolRequest, callback: (redirectRequest: RedirectRequest) -> Unit) -> Unit, completion: ((error: Error) -> Unit)? = definedExternally): Unit
(js)

interceptStreamProtocol

abstract fun interceptStreamProtocol(scheme: String, handler: (request: InterceptStreamProtocolRequest, callback: (dynamic) -> Unit) -> Unit, completion: ((error: Error) -> Unit)? = definedExternally): Unit
(js)

interceptStringProtocol

abstract fun interceptStringProtocol(scheme: String, handler: (request: InterceptStringProtocolRequest, callback: (data: String?) -> Unit) -> Unit, completion: ((error: Error) -> Unit)? = definedExternally): Unit
(js)

isProtocolHandled

abstract fun isProtocolHandled(scheme: String, callback: (error: Error) -> Unit): Unit
(js)

registerBufferProtocol

abstract fun registerBufferProtocol(scheme: String, handler: (request: RegisterBufferProtocolRequest, callback: (dynamic) -> Unit) -> Unit, completion: ((error: Error) -> Unit)? = definedExternally): Unit
(js)

registerFileProtocol

abstract fun registerFileProtocol(scheme: String, handler: (request: RegisterFileProtocolRequest, callback: (filePath: String?) -> Unit) -> Unit, completion: ((error: Error) -> Unit)? = definedExternally): Unit
(js)

registerHttpProtocol

abstract fun registerHttpProtocol(scheme: String, handler: (request: RegisterHttpProtocolRequest, callback: (redirectRequest: RedirectRequest) -> Unit) -> Unit, completion: ((error: Error) -> Unit)? = definedExternally): Unit
(js)

registerServiceWorkerSchemes

abstract fun registerServiceWorkerSchemes(schemes: Array<String>): Unit
(js)

registerStandardSchemes

abstract fun registerStandardSchemes(schemes: Array<String>, options: RegisterStandardSchemesOptions? = definedExternally): Unit
(js)

registerStreamProtocol

abstract fun registerStreamProtocol(scheme: String, handler: (request: RegisterStreamProtocolRequest, callback: (dynamic) -> Unit) -> Unit, completion: ((error: Error) -> Unit)? = definedExternally): Unit
(js)

registerStringProtocol

abstract fun registerStringProtocol(scheme: String, handler: (request: RegisterStringProtocolRequest, callback: (data: String?) -> Unit) -> Unit, completion: ((error: Error) -> Unit)? = definedExternally): Unit
(js)

uninterceptProtocol

abstract fun uninterceptProtocol(scheme: String, completion: ((error: Error) -> Unit)? = definedExternally): Unit
(js)

unregisterProtocol

abstract fun unregisterProtocol(scheme: String, completion: ((error: Error) -> Unit)? = definedExternally): Unit