FOnlineServices
The registry plugin InitializeModule hooks write into. Registration happens at plugin load (before any project opens); Init runs when the project's platform settings arrive through FPlatformInit::Apply.
- Module
- Networking
- Header
#include "Networking/OnlineService.h"- Namespace
Mowo
Public functions
| Returns | Name | Description |
|---|---|---|
void | Register | |
void | InitAll | |
void | UpdateAll | |
void | ShutdownAll | |
size_t | RemoveAllInModule | Shuts down and destroys every service whose vtable lives inside the given module image — a plugin-provided service left registered past its DLL would route the per-frame UpdateAll (and the eventual dtor) into freed pages. |
IOnlineService* | Primary | The identity-owning platform: the first AVAILABLE service reporting a nonzero local user id (Steam). |
IOnlineService* | FindByName | |
FOnlineVoiceSettings | VoiceSettings | The first available service that reports voice settings (Discord). |
const char* | HardwareName | "none", "steam_deck", "steam_machine", "steam_frame" or "other" — the spelling crash tags and scripts see. |
int32_t | RecommendedQualityPreset | The primary platform's default settings profile as a quality preset index (Low 0 .. |
void | SetOverlayCallback | One overlay handler fanned across every service, re-armed for every service registered afterwards — the engine installs its overlay policy at startup, before a platform plugin is guaranteed to be loaded, and the plugin that arrives later still has to reach it. |
bool | IsOverlayActive | |
const std::vector<std::unique_ptr<IOnlineService>>& | All |
Function details
Register
static void Register(std::unique_ptr<IOnlineService> service)InitAll
static void InitAll(const FPlatformInitParams& params)UpdateAll
static void UpdateAll()ShutdownAll
static void ShutdownAll()RemoveAllInModule
static size_t RemoveAllInModule(void* moduleHandle)Shuts down and destroys every service whose vtable lives inside the given module image — a plugin-provided service left registered past its DLL would route the per-frame UpdateAll (and the eventual dtor) into freed pages. Driven by the FModuleManager unload broadcast. Returns the number of services dropped.
Primary
static IOnlineService* Primary()The identity-owning platform: the first AVAILABLE service reporting a nonzero local user id (Steam). Null when no such platform is up — every facade already handles that as "feature honestly absent".
FindByName
static IOnlineService* FindByName(const char* name)VoiceSettings
static FOnlineVoiceSettings VoiceSettings()The first available service that reports voice settings (Discord).
HardwareName
static const char* HardwareName(EOnlinePlatformHardware hardware)"none", "steam_deck", "steam_machine", "steam_frame" or "other" — the spelling crash tags and scripts see.
RecommendedQualityPreset
static int32_t RecommendedQualityPreset()The primary platform's default settings profile as a quality preset index (Low 0 .. Cinematic 4), or -1 when it offers none. Generic profiles map one to one (Max is Epic); a Steam Deck gets Low, a Steam Frame Medium, since both render on a handheld-class GPU; a Steam Machine gets High. Kept here rather than in the renderer so a platform plugin needs no renderer header to answer.
SetOverlayCallback
static void SetOverlayCallback(std::function<void(bool)> callback)One overlay handler fanned across every service, re-armed for every service registered afterwards — the engine installs its overlay policy at startup, before a platform plugin is guaranteed to be loaded, and the plugin that arrives later still has to reach it. Passing an empty handler clears it.
IsOverlayActive
static bool IsOverlayActive()All
static const std::vector<std::unique_ptr<IOnlineService>>& All()