Platform v15 Reference Guide

OVR_Requests_LanguagePack.h File Reference

Function Documentation

ovrRequest ovr_LanguagePack_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.
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().
ovrRequest ovr_LanguagePack_SetCurrent ( const char * 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 ovr_AssetFile_DownloadByName() request, and sends periodic ovrNotification_AssetFile_DownloadUpdate to track the downloads. Once the language asset file is downloaded, call ovr_LanguagePack_GetCurrent() to retrive the data, and use the language at runtime.
Parameters
tag
BCP47 language tag
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().
1
2
3
4
5
6
7
8
9
21
22
37
38
39
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!

#ifndef OVR_REQUESTS_LANGUAGEPACK_H
#define OVR_REQUESTS_LANGUAGEPACK_H

#include "OVR_Types.h"
#include "OVR_Platform_Defs.h"


OVRP_PUBLIC_FUNCTION(ovrRequest) ovr_LanguagePack_GetCurrent();

OVRP_PUBLIC_FUNCTION(ovrRequest) ovr_LanguagePack_SetCurrent(constchar *tag);

#endif
The documentation for this file was generated from the following file: OVR_Requests_LanguagePack.h