API reference

LanguagePack Class

Static Methods

GetCurrent ()
Returns currently installed and selected language pack for an app in the view of the asset_details. Use language field to extract neeeded language info. A particular language can be download and installed by a user from the Oculus app on the application page.
Signature
static Request<Models.AssetDetails> Oculus.Platform.LanguagePack.GetCurrent()
SetCurrent ( tag )
Sets the current language to specified. The parameter is the BCP47 language tag. If a language pack is not downloaded yet, spawns automatically the AssetFile.DownloadByName() request, and sends periodic MessageType.Notification_AssetFile_DownloadUpdate to track the downloads. Once the language asset file is downloaded, call LanguagePack.GetCurrent() to retrive the data, and use the language at runtime.
Signature
static Request<Models.AssetFileDownloadResult> Oculus.Platform.LanguagePack.SetCurrent(string tag)
Parameters
tag: string  BCP47 language tag