| Name | Summary |
|---|---|
LanguagePack | constructor() |
| Name | Summary |
|---|---|
Companion | object Companion |
| Name | Summary |
|---|---|
getCurrent | suspend fun getCurrent(): AssetDetails Returns currently installed and selected language pack for an app in the view of the horizon.platform.assetfile.models.AssetDetails. Use horizon.platform.assetfile.models.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. |
setCurrent | suspend fun setCurrent(tag: String): AssetFileDownloadResult Sets the current language to specified. The parameter is the BCP47 language tag. If a language pack is not downloaded yet, spawns automatically the horizon.platform.assetfile.AssetFile.downloadByName request, and sends periodic horizon.platform.assetfile.AssetFile.downloadUpdate to track the downloads. Once the language asset file is downloaded, call horizon.platform.languagepack.LanguagePack.getCurrent to retrieve the data, and use the language at runtime. |