Asynchronously Initialize
Platform SDK. The result will be the type of
Models.PlatformInitialize.Result.While the platform is in an initializing state, it's not fully functional. [Requests]: will queue up and run once platform is initialized. For example:
Users.GetLoggedInUser() can be called immediately after asynchronous init and once platform is initialized, this request will run [Synchronous Methods]: will return the default value; For example:
Users.GetLoggedInUser() will return 0 until platform is fully initialized.Note that during initialization, some features may not be available or may return default values. It's important to check the initialization status before attempting to use certain features or functions. Use
Message.IsError to check if the result is an error. Use
Message.Type to check the message type. Use
Models.PlatformInitialize.Result to get the result of the initialization.
ParametersappIdThe app ID to use for initialization. If null, the app ID will be retrieved from the
OculusPlatform Settings.