Skip to main content
Version: 20 Mar 2024

MLWebRTCAppDefinedSourceEventCallbacks

The native representation of the MLWebRTC data channel callback events.

Public Methods

MLWebRTCAppDefinedSourceEventCallbacks Create

Factory method used to create a new MLWebRTCAppDefinedVideoSourceEventCallbacks object.

public static MLWebRTCAppDefinedSourceEventCallbacks Create(
IntPtr context,
OnSetEnabledDelegate onSetEnabled,
OnDestroyedDelegate onDestroyed
)

Parameters

TypeNameDescription
IntPtrcontextPointer to the context object to use for the callbacks.
OnSetEnabledDelegateonSetEnabled
OnDestroyedDelegateonDestroyed

Returns: An MLWebRTCAppDefinedVideoSourceEventCallbacks object with the given handle.


Public Attributes

Context

Version of the struct.


public IntPtr Context;


OnDestroyed

OnDestroyed event.


public OnDestroyedDelegate OnDestroyed;


OnSetEnabled

OnSetEnabled event.


public OnSetEnabledDelegate OnSetEnabled;


Version

Version of the struct.


public uint Version;