registerStringProtocol
abstract fun registerStringProtocol(scheme: String, handler: (request: ProtocolRequest, callback: (response: Any) -> Unit) -> Unit): Boolean(source)
Whether the protocol was successfully registered
Registers a protocol of scheme
that will send a string
as a response.
The usage is the same with registerFileProtocol
, except that the callback
should be called with either a string
or an object that has the data
property.