Skip to main content
Version: 21 Aug 2024

SpaceCallbacks

A structure containing callbacks for events related to the Space. This structure must be initialized by calling #MLSpaceCallbacksInit before use. Application can unregister(stop receiving callbacks) at any time by setting the corresponding callback to NULL.

Public Methods

SpaceCallbacks Create

Initialize default values for #SpaceCallbacks.

public static SpaceCallbacks Create(
uint version =1u
)

Parameters

TypeNameDescription
uintversion

Public Attributes

OnLocalizationChangedCallbacks

This callback will be invoked whenever there is an update to the localization status. Localization events can occur when the application requests for localization via #MLSpaceRequestLocalization or due to other events outside the control of the app such as head tracking failure, localization loss.


public MLSpaceDelegate OnLocalizationChangedCallbacks;


Version

Version of the structure.


public uint Version;