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
Type | Name | Description |
---|---|---|
bool | hasFocus | True if the application has focus, else False. |
OnApplicationPause
Callback sent to all MagicLeap APIs on application pause.
protected virtual void OnApplicationPause(
bool pauseStatus
)
Parameters
Type | Name | Description |
---|---|---|
bool | pauseStatus | True 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;