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
Type | Name | Description |
---|---|---|
IntPtr | context | The 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;
Type | Description |
---|---|
OnClosedDelegate | Delegate that describes the requirements of the OnClosed callback. |
OnMessage
Native OnMessage event.
public OnMessageDelegate OnMessage;
OnOpen
Native OnOpen event.
public OnOpenedDelegate OnOpen;
Type | Description |
---|---|
OnOpenedDelegate | Delegate that describes the requirements of the OnOpened callback. |
Version
Version of the struct.
public uint Version;