cohtml.Net.IUnityPluginListener
It includes callbacks that, send callbacks at specific moments during the processes in the Cohtml Native plugin.
Inherits from SystemIDisposable
Inherited by cohtml.UnityPluginListener
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| virtual void | Dispose() |
| virtual void | OnPreloadedTextureReleased(global.System.IntPtr texturePtr) Invoked at the moment of releasing the texture from the system, a pointer to the texture is provided for additional operations by the API. |
| virtual void | OnUserImageDropped(global.System.IntPtr texturePtr) Called in cases where the backend won’t receive a delete texture call for the user image To be used to decrement reference counters for user image resources. |
| virtual void | OnWorkAvailable(WorkType type) The Task System will notify through this callback when work is available. The tasks must be executed on a different thread. |
| IUnityPluginListener() | |
| delegate void | SwigDelegateIUnityPluginListener_0(global.System.IntPtr texturePtr, global.System.IntPtr swigId) |
| delegate void | SwigDelegateIUnityPluginListener_1(global.System.IntPtr texturePtr, global.System.IntPtr swigId) |
| delegate void | SwigDelegateIUnityPluginListener_2(int type, global.System.IntPtr swigId) |
Protected Attributes
Section titled “Protected Attributes”| Name | |
|---|---|
| bool | swigCMemOwn |
Public Functions Documentation
Section titled “Public Functions Documentation”function Dispose
Section titled “function Dispose”virtual void Dispose()Reimplemented by: cohtml.UnityPluginListener.Dispose
function OnPreloadedTextureReleased
Section titled “function OnPreloadedTextureReleased”virtual void OnPreloadedTextureReleased( global.System.IntPtr texturePtr)Invoked at the moment of releasing the texture from the system, a pointer to the texture is provided for additional operations by the API.
Parameters:
- texturePtr The texture that will be released.
function OnUserImageDropped
Section titled “function OnUserImageDropped”virtual void OnUserImageDropped( global.System.IntPtr texturePtr)Called in cases where the backend won’t receive a delete texture call for the user image To be used to decrement reference counters for user image resources.
Parameters:
- texturePtr The texture that will delete in that call.
function OnWorkAvailable
Section titled “function OnWorkAvailable”virtual void OnWorkAvailable( WorkType type)The Task System will notify through this callback when work is available. The tasks must be executed on a different thread.
Parameters:
- type the type of the work queued from process.
Reimplemented by: cohtml.UnityPluginListener.OnWorkAvailable
function IUnityPluginListener
Section titled “function IUnityPluginListener”IUnityPluginListener()function SwigDelegateIUnityPluginListener_0
Section titled “function SwigDelegateIUnityPluginListener_0”delegate void SwigDelegateIUnityPluginListener_0( global.System.IntPtr texturePtr, global.System.IntPtr swigId)function SwigDelegateIUnityPluginListener_1
Section titled “function SwigDelegateIUnityPluginListener_1”delegate void SwigDelegateIUnityPluginListener_1( global.System.IntPtr texturePtr, global.System.IntPtr swigId)function SwigDelegateIUnityPluginListener_2
Section titled “function SwigDelegateIUnityPluginListener_2”delegate void SwigDelegateIUnityPluginListener_2( int type, global.System.IntPtr swigId)Protected Attributes Documentation
Section titled “Protected Attributes Documentation”variable swigCMemOwn
Section titled “variable swigCMemOwn”bool swigCMemOwn;© 2026 Coherent Labs. All rights reserved.