Skip to content
SiteEmail

cohtml.UnityPluginListener

Helper class providing plugin events to the user giving flexibility and allowing to customize the initialization of the ILibrary and IUISystem objects.

Inherits from cohtml.Net.IUnityPluginListener, SystemIDisposable

Name
override voidOnPreloadedTextureReleased(IntPtr texturePtr)
Invoked when a preloaded texture is released from Cohtml.
override voidOnUserImageDropped(IntPtr texturePtr)
Invoked when a user image is dropped by Cohtml.
virtual override voidOnWorkAvailable(WorkType type)
Invoked when Cohtml has work available. Schedules a task with the provided work type.
virtual override voidDispose()
Name
Action< IntPtr >PreloadedTextureReleased
Invoked when a preloaded texture is released from Cohtml.
Func< ILibrary >OnInitializeLibrary
Subscribe to create a custom Cohtml Library initialization.
Func< ISystemSettings, IUISystem >OnInitializeSystem
Subscribe to create a custom Cohtml UISystem initialization.
Func< bool >OnHaveLicenseCheck
Subscribe to provide a Cohtml license check. Return true if the license is empty or invalid.

Public Functions inherited from cohtml.Net.IUnityPluginListener

Name
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)

Protected Attributes inherited from cohtml.Net.IUnityPluginListener

Name
boolswigCMemOwn
override void OnPreloadedTextureReleased(
IntPtr texturePtr
)

Invoked when a preloaded texture is released from Cohtml.

override void OnUserImageDropped(
IntPtr texturePtr
)

Invoked when a user image is dropped by Cohtml.

virtual override void OnWorkAvailable(
WorkType type
)

Invoked when Cohtml has work available. Schedules a task with the provided work type.

Reimplements: cohtml.Net.IUnityPluginListener.OnWorkAvailable

virtual override void Dispose()

Reimplements: cohtml.Net.IUnityPluginListener.Dispose

Action< IntPtr > PreloadedTextureReleased;

Invoked when a preloaded texture is released from Cohtml.

Func< ILibrary > OnInitializeLibrary;

Subscribe to create a custom Cohtml Library initialization.

Func< ISystemSettings, IUISystem > OnInitializeSystem;

Subscribe to create a custom Cohtml UISystem initialization.

Func< bool > OnHaveLicenseCheck;

Subscribe to provide a Cohtml license check. Return true if the license is empty or invalid.