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
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
Name | |
---|---|
bool | swigCMemOwn |
Public Functions Documentation
function Dispose
virtual void Dispose()
Reimplemented by: cohtml.UnityPluginListener.Dispose
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
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
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
IUnityPluginListener()
function SwigDelegateIUnityPluginListener_0
delegate void SwigDelegateIUnityPluginListener_0(
global.System.IntPtr texturePtr,
global.System.IntPtr swigId
)
function SwigDelegateIUnityPluginListener_1
delegate void SwigDelegateIUnityPluginListener_1(
global.System.IntPtr texturePtr,
global.System.IntPtr swigId
)
function SwigDelegateIUnityPluginListener_2
delegate void SwigDelegateIUnityPluginListener_2(
int type,
global.System.IntPtr swigId
)
Protected Attributes Documentation
variable swigCMemOwn
bool swigCMemOwn;