Skip to content
SiteEmail

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

Name
virtual voidDispose()
virtual voidOnPreloadedTextureReleased(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 voidOnUserImageDropped(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 voidOnWorkAvailable(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 voidSwigDelegateIUnityPluginListener_0(global.System.IntPtr texturePtr, global.System.IntPtr swigId)
delegate voidSwigDelegateIUnityPluginListener_1(global.System.IntPtr texturePtr, global.System.IntPtr swigId)
delegate voidSwigDelegateIUnityPluginListener_2(int type, global.System.IntPtr swigId)
Name
boolswigCMemOwn
virtual void Dispose()

Reimplemented by: cohtml.UnityPluginListener.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.

Parameters:

  • texturePtr The texture that will be released.
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.
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

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
)
bool swigCMemOwn;