ElectronNativeImage.getNativeHandle method
ElectronNativeImage › getNativeHandle
Unofficial
Returns a buffer that stores the C pointer to the underlying native handle of the image. On macOS, a pointer to anNSImage instance is returned. The returned pointer is a weak pointer to the underlying native image, so the associated nativeImage instance must be kept around. Only available on macOS. Signature:
getNativeHandle(): BufferReturns: Buffer — The native handle of the image.