Skip to main content
Version: 12 Dec 2024

MLAPIBase

NameSpace: MagicLeap

Inherited by:
UnityEngine.XR.MagicLeap.MLWebView

Public Methods

MLAPIBase

public MLAPIBase()

Protected Methods

OnApplicationFocus

Callback sent to all MagicLeap APIs on application focus event.

protected virtual void OnApplicationFocus(
bool hasFocus
)

Parameters

TypeNameDescription
boolhasFocusTrue if the application has focus, else False.

OnApplicationPause

Callback sent to all MagicLeap APIs on application pause.

protected virtual void OnApplicationPause(
bool pauseStatus
)

Parameters

TypeNameDescription
boolpauseStatusTrue if the application is paused, else False.

Update

Update function that will run once per Unity frame.

protected virtual void Update()

Protected Attributes

APILock

Lock used to keep api calls synchronous.


protected readonly object APILock = new object();


Handle

The native handle ID for this API instance. Will be invalid until the API is started.


protected ulong Handle = Native.MagicLeapNativeBindings.InvalidHandle;