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

Public Functions

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

Public Attributes

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.

Additional inherited members

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

Public Functions Documentation

function OnPreloadedTextureReleased

override void OnPreloadedTextureReleased(
    IntPtr texturePtr
)

Invoked when a preloaded texture is released from Cohtml.

function OnUserImageDropped

override void OnUserImageDropped(
    IntPtr texturePtr
)

Invoked when a user image is dropped by Cohtml.

function OnWorkAvailable

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

function Dispose

virtual override void Dispose()

Reimplements: cohtml.Net.IUnityPluginListener.Dispose

Public Attributes Documentation

variable PreloadedTextureReleased

Action< IntPtr > PreloadedTextureReleased;

Invoked when a preloaded texture is released from Cohtml.

variable OnInitializeLibrary

Func< ILibrary > OnInitializeLibrary;

Subscribe to create a custom Cohtml Library initialization.

variable OnInitializeSystem

Func< ISystemSettings, IUISystem > OnInitializeSystem;

Subscribe to create a custom Cohtml UISystem initialization.

variable OnHaveLicenseCheck

Func< bool > OnHaveLicenseCheck;

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