API reference
API reference
Select your platform
No SDKs available
No versions available

OVR_Requests_LanguagePack.h File

The LanguagePack API provides a way to manage language packs for an application. A language pack is a collection of assets that are specific to a particular language, such as translations of text, audio files, and images. For more information, see here.

Functions

Returns currently installed and selected language pack for an app in the view of the ovrAssetDetailsHandle. Use ovr_AssetDetails_GetLanguage() field to extract needed language info. A particular language can be download and installed by a user from the Oculus app on the application page.A message with type ovrMessage_LanguagePack_GetCurrent will be generated in response.First call ovr_Message_IsError() to check if an error occurred.If no error occurred, the message will contain a payload of type ovrAssetDetailsHandle. Extract the payload from the message handle with ovr_Message_GetAssetDetails().
Sets the current language to specified. The parameter is the BCP47 language tag. If a language pack is not downloaded yet, spawns automatically the ovr_AssetFile_DownloadByName() request, and sends periodic ovrMessage_Notification_AssetFile_DownloadUpdate to track the downloads. Once the language asset file is downloaded, call ovr_LanguagePack_GetCurrent() to retrieve the data, and use the language at runtime.
Parameters
tag
The BCP47 language tag that identifies the language to be set as the current language.
A message with type ovrMessage_LanguagePack_SetCurrent will be generated in response.First call ovr_Message_IsError() to check if an error occurred.If no error occurred, the message will contain a payload of type ovrAssetFileDownloadResultHandle. Extract the payload from the message handle with ovr_Message_GetAssetFileDownloadResult().
Did you find this page helpful?
Thumbs up icon
Thumbs down icon