class

FOnlineImages

Platform images (friend avatars, achievement icons) addressed by a path a UI image widget can name, so a lobby screen or an achievements list binds an avatar the way it binds any texture:

Module
Networking
Header
#include "Networking/OnlineImages.h"
Namespace
Mowo

online://avatar/<Platform>/<userId> online://achievement/<achievementId>

The image decoder the Miri UI host installs asks Resolve for any path with the scheme. A miss starts the platform's download and answers false; the caller asks again after the change callback (EOnlineChangeKind::Avatar) or on its next refresh. Pixels the platform hands over directly (Steam) are cached as RGBA; an image the platform only links to (a Discord avatar URL) is cached encoded and decoded by the host, which owns an image decoder.

Properties

TypeNameDescription
static constexpr const char*kSchemeDefault "online://".

Public functions

ReturnsNameDescription
std::stringAvatarPath
std::stringAchievementIconPath
boolIsOnlinePath
uint64_tHandleForA stable id for the path, for graphs that key a texture by number.
boolResolvePixels for the path; false while they have not arrived.
boolResolveEncodedThe compressed bytes of an image the platform delivered as a file (PNG or JPEG), for a decoder.
voidStoreRgbaPlatform side: hand over what arrived.
voidStoreEncoded
boolIsFetchPendingTrue once a fetch for the path was started and has not been answered, so a per-frame UI does not start it again.
voidMarkFetchPending
voidClear

Function details

AvatarPath

C++
static std::string AvatarPath(const std::string& platform, uint64_t userId)

AchievementIconPath

C++
static std::string AchievementIconPath(const std::string& achievementId)

IsOnlinePath

C++
static bool IsOnlinePath(const std::string& path)

HandleFor

C++
static uint64_t HandleFor(const std::string& path)

A stable id for the path, for graphs that key a texture by number.

Resolve

C++
static bool Resolve(const std::string& path, FOnlineImage& outImage)

Pixels for the path; false while they have not arrived.

ResolveEncoded

C++
static bool ResolveEncoded(const std::string& path, std::vector<uint8_t>& outBytes)

The compressed bytes of an image the platform delivered as a file (PNG or JPEG), for a decoder. False when the path is not cached encoded.

StoreRgba

C++
static void StoreRgba(const std::string& path, FOnlineImage image)

Platform side: hand over what arrived. Fires the change callback chain's Avatar kind through the owning service, not from here.

StoreEncoded

C++
static void StoreEncoded(const std::string& path, std::vector<uint8_t> bytes)

IsFetchPending

C++
static bool IsFetchPending(const std::string& path)

True once a fetch for the path was started and has not been answered, so a per-frame UI does not start it again.

MarkFetchPending

C++
static void MarkFetchPending(const std::string& path)

Clear

C++
static void Clear()
Generated from Networking/OnlineImages.h via networking.json · Dec 5, 2026Version 1.1.0