DefaultNotificationText_WaitingForCellular
DefaultNotificationText_WaitingForCellular
#Overview
name: DefaultNotificationText_WaitingForCellular
The value of this variable can be defined or overridden in .ini config files. 13
.ini config files referencing this setting variable.
It is referenced in 5
C++ source files.
#Summary
#Usage in the C++ source code
The purpose of DefaultNotificationText_WaitingForCellular is to provide a localized text message for notifications when the background download system is waiting for a cellular connection to become available.
This setting variable is primarily used by the Android-specific background download system in Unreal Engine 5. It is part of the AndroidFetchBackgroundDownload plugin, which is responsible for managing background HTTP downloads on Android devices.
The value of this variable is set through an INI configuration file. It is initialized in the InitFromIniSettings() function of the FAndroidBackgroundHTTPManagerDefaultLocalizedText struct, which reads the value from a configuration section dedicated to text settings.
This variable interacts with other similar notification text variables, such as DefaultNotificationText_Cancel, DefaultNotificationText_NoInternet, and DefaultNotificationText_Approve. They are all part of a set of localized text messages used for various states of the background download process.
Developers should be aware that this variable is used to display user-facing messages, so it’s crucial to provide appropriate and clear text for different languages and regions. The text should effectively communicate that the download is on hold while waiting for a cellular connection.
Best practices when using this variable include:
- Ensuring that the text is properly localized for all supported languages.
- Keeping the message concise and clear, as it will be displayed in a notification.
- Considering the context of cellular data usage, as some users might have limited data plans.
- Regularly reviewing and updating the text to ensure it remains relevant and user-friendly.
- Testing the notification system thoroughly to ensure the text is displayed correctly in various scenarios.
#Setting Variables
#References In INI files
Location: <Workspace>/Engine/Plugins/Online/Android/AndroidFetchBackgroundDownload/Config/BaseAndroidFetchBackgroundDownload.ini:89, section: [AndroidBackgroundHTTP.DefaultTextLoc]
- INI Section:
AndroidBackgroundHTTP.DefaultTextLoc
- Raw value:
("native","Waiting for cellular approval")
- Is Array:
True
Location: <Workspace>/Engine/Plugins/Online/Android/AndroidFetchBackgroundDownload/Config/BaseAndroidFetchBackgroundDownload.ini:90, section: [AndroidBackgroundHTTP.DefaultTextLoc]
- INI Section:
AndroidBackgroundHTTP.DefaultTextLoc
- Raw value:
("ar","في انتظار السماح باستخدام بيانات الهاتف")
- Is Array:
True
Location: <Workspace>/Engine/Plugins/Online/Android/AndroidFetchBackgroundDownload/Config/BaseAndroidFetchBackgroundDownload.ini:91, section: [AndroidBackgroundHTTP.DefaultTextLoc]
- INI Section:
AndroidBackgroundHTTP.DefaultTextLoc
- Raw value:
("de","Warten auf Bestätigung der mobilen Datenverwendung")
- Is Array:
True
Location: <Workspace>/Engine/Plugins/Online/Android/AndroidFetchBackgroundDownload/Config/BaseAndroidFetchBackgroundDownload.ini:92, section: [AndroidBackgroundHTTP.DefaultTextLoc]
- INI Section:
AndroidBackgroundHTTP.DefaultTextLoc
- Raw value:
("es","En espera de aprobación del uso de datos móviles")
- Is Array:
True
Location: <Workspace>/Engine/Plugins/Online/Android/AndroidFetchBackgroundDownload/Config/BaseAndroidFetchBackgroundDownload.ini:93, section: [AndroidBackgroundHTTP.DefaultTextLoc]
- INI Section:
AndroidBackgroundHTTP.DefaultTextLoc
- Raw value:
("es-419","Esperando aprobación de uso de datos móviles")
- Is Array:
True
Location: <Workspace>/Engine/Plugins/Online/Android/AndroidFetchBackgroundDownload/Config/BaseAndroidFetchBackgroundDownload.ini:94, section: [AndroidBackgroundHTTP.DefaultTextLoc]
- INI Section:
AndroidBackgroundHTTP.DefaultTextLoc
- Raw value:
("fr","En attente d'autorisation de l'utilisation des données mobiles")
- Is Array:
True
Location: <Workspace>/Engine/Plugins/Online/Android/AndroidFetchBackgroundDownload/Config/BaseAndroidFetchBackgroundDownload.ini:95, section: [AndroidBackgroundHTTP.DefaultTextLoc]
- INI Section:
AndroidBackgroundHTTP.DefaultTextLoc
- Raw value:
("it","In attesa di autorizzazione per l’utilizzo dei dati mobili")
- Is Array:
True
Location: <Workspace>/Engine/Plugins/Online/Android/AndroidFetchBackgroundDownload/Config/BaseAndroidFetchBackgroundDownload.ini:96, section: [AndroidBackgroundHTTP.DefaultTextLoc]
- INI Section:
AndroidBackgroundHTTP.DefaultTextLoc
- Raw value:
("ja","モバイルデータ通信の許可を待っています")
- Is Array:
True
Location: <Workspace>/Engine/Plugins/Online/Android/AndroidFetchBackgroundDownload/Config/BaseAndroidFetchBackgroundDownload.ini:97, section: [AndroidBackgroundHTTP.DefaultTextLoc]
- INI Section:
AndroidBackgroundHTTP.DefaultTextLoc
- Raw value:
("ko","모바일 데이터 사용 승인 기다리는 중")
- Is Array:
True
Location: <Workspace>/Engine/Plugins/Online/Android/AndroidFetchBackgroundDownload/Config/BaseAndroidFetchBackgroundDownload.ini:98, section: [AndroidBackgroundHTTP.DefaultTextLoc]
- INI Section:
AndroidBackgroundHTTP.DefaultTextLoc
- Raw value:
("pl","Oczekiwanie na zatwierdzenie użycia danych komórkowych")
- Is Array:
True
Location: <Workspace>/Engine/Plugins/Online/Android/AndroidFetchBackgroundDownload/Config/BaseAndroidFetchBackgroundDownload.ini:99, section: [AndroidBackgroundHTTP.DefaultTextLoc]
- INI Section:
AndroidBackgroundHTTP.DefaultTextLoc
- Raw value:
("pt-BR","Aguardando a autorização de uso de dados móveis")
- Is Array:
True
Location: <Workspace>/Engine/Plugins/Online/Android/AndroidFetchBackgroundDownload/Config/BaseAndroidFetchBackgroundDownload.ini:100, section: [AndroidBackgroundHTTP.DefaultTextLoc]
- INI Section:
AndroidBackgroundHTTP.DefaultTextLoc
- Raw value:
("ru","Ожидание разрешения на использование сотовой сети для передачи данных")
- Is Array:
True
Location: <Workspace>/Engine/Plugins/Online/Android/AndroidFetchBackgroundDownload/Config/BaseAndroidFetchBackgroundDownload.ini:101, section: [AndroidBackgroundHTTP.DefaultTextLoc]
- INI Section:
AndroidBackgroundHTTP.DefaultTextLoc
- Raw value:
("tr","Hücresel veri onayı bekleniyor")
- Is Array:
True
#References in C++ code
#Callsites
This variable is referenced in the following C++ source code:
#Loc: <Workspace>/Engine/Plugins/Online/Android/AndroidFetchBackgroundDownload/Source/AndroidFetchBackgroundDownload/Private/AndroidPlatformBackgroundHttpManager.cpp:358
Scope (from outer to inner):
file
function void FAndroidPlatformBackgroundHttpManager::ActivatePendingRequests
Source code excerpt:
WorkParams.AddDataToWorkerParameters(FAndroidNativeDownloadWorkerParameterKeys::NOTIFICATION_CONTENT_CANCEL_DOWNLOAD_TEXT_KEY, AndroidBackgroundHTTPManagerDefaultLocalizedText.DefaultNotificationText_Cancel.GetText());
WorkParams.AddDataToWorkerParameters(FAndroidNativeDownloadWorkerParameterKeys::NOTIFICATION_CONTENT_NO_INTERNET_TEXT_KEY, AndroidBackgroundHTTPManagerDefaultLocalizedText.DefaultNotificationText_NoInternet.GetText());
WorkParams.AddDataToWorkerParameters(FAndroidNativeDownloadWorkerParameterKeys::NOTIFICATION_CONTENT_WAITING_FOR_CELLULAR_TEXT_KEY, AndroidBackgroundHTTPManagerDefaultLocalizedText.DefaultNotificationText_WaitingForCellular.GetText());
WorkParams.AddDataToWorkerParameters(FAndroidNativeDownloadWorkerParameterKeys::NOTIFICATION_CONTENT_APPROVE_TEXT_KEY, AndroidBackgroundHTTPManagerDefaultLocalizedText.DefaultNotificationText_Approve.GetText());
//Expect our ContentText to have a {DownloadPercent} argument in it by default, so this will replace that with the Java string format argument so Java can insert the appropriate value
FFormatNamedArguments Arguments;
Arguments.Emplace(TEXT("DownloadPercent"), FText::FromString(TEXT("%02d%%")));
FText UpdatedContentText = FText::Format(AndroidBackgroundHTTPManagerDefaultLocalizedText.DefaultNotificationText_Content.GetText(), Arguments);
#Loc: <Workspace>/Engine/Plugins/Online/Android/AndroidFetchBackgroundDownload/Source/AndroidFetchBackgroundDownload/Private/AndroidPlatformBackgroundHttpManager.cpp:1040
Scope (from outer to inner):
file
function FAndroidPlatformBackgroundHttpManager::FAndroidBackgroundHTTPManagerDefaultLocalizedText::FAndroidBackgroundHTTPManagerDefaultLocalizedText::FAndroidBackgroundHTTPManagerDefaultLocalizedText
Source code excerpt:
, DefaultNotificationText_Cancel()
, DefaultNotificationText_NoInternet()
, DefaultNotificationText_WaitingForCellular()
, DefaultNotificationText_Approve()
{
}
void FAndroidPlatformBackgroundHttpManager::FAndroidBackgroundHTTPManagerDefaultLocalizedText::InitFromIniSettings(const FString& ConfigFileName)
{
#Loc: <Workspace>/Engine/Plugins/Online/Android/AndroidFetchBackgroundDownload/Source/AndroidFetchBackgroundDownload/Private/AndroidPlatformBackgroundHttpManager.cpp:1089
Scope (from outer to inner):
file
function void FAndroidPlatformBackgroundHttpManager::FAndroidBackgroundHTTPManagerDefaultLocalizedText::InitFromIniSettings
Source code excerpt:
}
//DefaultNotificationText_WaitingForCellular
{
TArray<FString> WaitingForCellularTextStrings;
Config->GetArray(*TextConfigSection, TEXT("DefaultNotificationText_WaitingForCellular"), WaitingForCellularTextStrings);
ParsePolyglotTextItem(DefaultNotificationText_WaitingForCellular, TEXT("Notification.WaitingForCellularText"), WaitingForCellularTextStrings);
}
//DefaultNotificationText_Approve
{
TArray<FString> ApproveTextStrings;
Config->GetArray(*TextConfigSection, TEXT("DefaultNotificationText_Approve"), ApproveTextStrings);
#Loc: <Workspace>/Engine/Plugins/Online/Android/AndroidFetchBackgroundDownload/Source/AndroidFetchBackgroundDownload/Private/AndroidPlatformBackgroundHttpManager.cpp:1112
Scope (from outer to inner):
file
function void FAndroidPlatformBackgroundHttpManager::FAndroidBackgroundHTTPManagerDefaultLocalizedText::InitFromIniSettings
Source code excerpt:
ForceValidPolyglotText(DefaultNotificationText_Cancel, TEXT("DefaultNotificationText_Cancel"));
ForceValidPolyglotText(DefaultNotificationText_NoInternet, TEXT("DefaultNotificationText_NoInternet"));
ForceValidPolyglotText(DefaultNotificationText_WaitingForCellular, TEXT("DefaultNotificationText_WaitingForCellular"));
ForceValidPolyglotText(DefaultNotificationText_Approve, TEXT("DefaultNotificationText_Approve"));
}
void FAndroidPlatformBackgroundHttpManager::FAndroidBackgroundHTTPManagerDefaultLocalizedText::ForceValidPolyglotText(FPolyglotTextData& TextDataOut, const FString& DebugPolyglotTextName)
{
FText FailureReason;
#Loc: <Workspace>/Engine/Plugins/Online/Android/AndroidFetchBackgroundDownload/Source/AndroidFetchBackgroundDownload/Public/AndroidPlatformBackgroundHttpManager.h:157
Scope (from outer to inner):
file
class class FAndroidPlatformBackgroundHttpManager : public FBackgroundHttpManagerImpl
Source code excerpt:
FPolyglotTextData DefaultNotificationText_Cancel;
FPolyglotTextData DefaultNotificationText_NoInternet;
FPolyglotTextData DefaultNotificationText_WaitingForCellular;
FPolyglotTextData DefaultNotificationText_Approve;
void InitFromIniSettings(const FString& ConfigFileName);
private: