Skip to main content
Version: 20 Mar 2024

MLWebRTCDataChannelEventCallbacks

The native representation of the MLWebRTC data channel callback events.

Public Methods

MLWebRTCDataChannelEventCallbacks Create

Creates an initialized MLWebRTCDataChannelEventCallbacks object.

public static MLWebRTCDataChannelEventCallbacks Create(
IntPtr context
)

Parameters

TypeNameDescription
IntPtrcontextThe context object to use.

Returns: An initialized MLWebRTCDataChannelEventCallbacks object.


Public Attributes

Context

Context pointer used with the dataChannelCounter field to determine which data channel that callbacks are associated with.


public IntPtr Context;


OnClosed

Native OnClosed event.


public OnClosedDelegate OnClosed;

TypeDescription
OnClosedDelegateDelegate that describes the requirements of the OnClosed callback.

OnMessage

Native OnMessage event.


public OnMessageDelegate OnMessage;


OnOpen

Native OnOpen event.


public OnOpenedDelegate OnOpen;

TypeDescription
OnOpenedDelegateDelegate that describes the requirements of the OnOpened callback.

Version

Version of the struct.


public uint Version;