SharedTexture
Properties
Functions
Link copied to clipboard
abstract external fun importSharedTexture(options: ImportSharedTextureOptions): SharedTextureImported
Imports the shared texture from the given options.
Link copied to clipboard
abstract external 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
Set a callback to receive imported shared textures from the main process.