Skip to main content
Version: 20 Mar 2024

NativeBindings

Native bindings for the MLWebRTC class.

Inherits from:
MagicLeapNativeBindings

Public Methods

IntPtr MLWebRTCGetResultString

Gets the string value of MLWebRTC specific result codes.

public IntPtr MLWebRTCGetResultString(
MLResult.Code result
)

Parameters

TypeNameDescription
MLResult.CoderesultThe MLWebRTC specific result code.

Returns: MLResult.Result will be MLResult.Code.Ok if the instance was successfully destroyed. MLResult.Result will be MLResult.Code.PermissionDenied if necessary permission is missing. MLResult.Result will be MLResult.Code.UnspecifiedFailure if failed due to other internal error.


MLResult.Code MLWebRTCInstanceCreate

Creates the MLWebRTC instance.

public MLResult.Code MLWebRTCInstanceCreate()

Returns: MLResult.Result will be MLResult.Code.Ok if the instance was successfully created. MLResult.Result will be MLResult.Code.PermissionDenied if necessary permission is missing. MLResult.Result will be MLResult.Code.UnspecifiedFailure if failed due to other internal error.


MLResult.Code MLWebRTCInstanceCreateWithDebugUtils

Creates the MLWebRTC instance with more debug logs.

public MLResult.Code MLWebRTCInstanceCreateWithDebugUtils(
in MLWebRTCDebugUtils debugUtils
)

Parameters

TypeNameDescription
in MLWebRTCDebugUtilsdebugUtilsThe MLWebRTCDebugUtils object to initialize with.

Returns: MLResult.Result will be MLResult.Code.Ok if the instance was successfully created. MLResult.Result will be MLResult.Code.PermissionDenied if necessary permission is missing. MLResult.Result will be MLResult.Code.UnspecifiedFailure if failed due to other internal error.


MLResult.Code MLWebRTCInstanceDestroy

Destroys the MLWebRTC instance.

public MLResult.Code MLWebRTCInstanceDestroy()

Returns: MLResult.Result will be MLResult.Code.Ok if the instance was successfully destroyed. MLResult.Result will be MLResult.Code.PermissionDenied if necessary permission is missing. MLResult.Result will be MLResult.Code.UnspecifiedFailure if failed due to other internal error.


delegate void OnDebugMessageDelegate

Delegate describing the callback necessary to monitor when an debug message is received.

public delegate void OnDebugMessageDelegate(
AndroidLogPriority logLevel,
string message,
IntPtr context
)

Parameters

TypeNameDescription
AndroidLogPrioritylogLevelThe log level of the debug utils.
stringmessageThe debug message.
IntPtrcontextPointer to a context object.