GetCurrent
()
|
Returns currently installed and selected language pack for an app in the view of the Models.AssetDetails. Use AssetDetails::Language 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.
Signature
static Request<Models.AssetDetails> Oculus.Platform.LanguagePack.GetCurrent() Returns Request< Models.AssetDetails > |
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 Message::MessageType::Notification_AssetFile_DownloadUpdate to track the downloads. Once the language asset file is downloaded, call LanguagePack.GetCurrent() to retrieve the data, and use the language at runtime.
Signature
static Request<Models.AssetFileDownloadResult> Oculus.Platform.LanguagePack.SetCurrent(string tag) Parameters tag: string
The BCP47 language tag that identifies the language to be set as the current language.
Returns Request< Models.AssetFileDownloadResult > |