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
Type | Name | Description |
---|---|---|
MLResult.Code | result | The 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
Type | Name | Description |
---|---|---|
in MLWebRTCDebugUtils | debugUtils | The 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
Type | Name | Description |
---|---|---|
AndroidLogPriority | logLevel | The log level of the debug utils. |
string | message | The debug message. |
IntPtr | context | Pointer to a context object. |