SharedTexture

external interface SharedTexture(source)

Properties

Link copied to clipboard

A SharedTextureSubtle property, provides subtle APIs for interacting with shared texture for advanced users.

Functions

Link copied to clipboard

Imports the shared texture from the given options.

Link copied to clipboard
abstract fun sendSharedTexture(options: SendSharedTextureOptions, vararg args: Any?): Promise<Void>

Send the imported shared texture to a renderer process. You must register a receiver at renderer process before calling this method. This method has a 1000ms timeout. Ensure the receiver is set and the renderer process is alive before calling this method.

Link copied to clipboard
abstract fun setSharedTextureReceiver(callback: Function<Promise<Void>>)

Set a callback to receive imported shared textures from the main process.