The following example highlights how a developer might use the VIVEPORT Top Level API in their title.
Call the Top Level API using
Viveport.Api.Initbefore calling any of the other APIs. This function will initialize the VIVEPORT SDK which may take time. For Unity developers, this is typically called as Monobehavior
Start(). The StatusCallback() will output the status after initialization is complete, without blocking the main thread.
Viveport.Api.Shutdownto release VIVEPORT SDK resources when no longer needed. In Unity, this is typically either in MonoBehavior
Application.Quit().The StatusCallback() will output the status after the shutdown is complete, without blocking the main thread.