api/internal/gamification/cache/skin_prefetcher library

Classes

NetworkClientSkinFetcher
Fetches through the SDK's network client, so skin downloads ride its identity headers. The skin is a single UTF-8 HTML file. Enforces the per-file cap and rejects an empty file, throwing SkinFetchException.
SkinPrefetcher
Downloads one self-contained skin file into SkinFileCache. Called when a gamification campaign arrives or a grant is answered; the SDK never builds a skin URL itself, it only prefetches the bundleUrl from the payload.

Typedefs

SkinBundleFetcher = Future<List<int>> Function(String url)
Every working skin defines window.DigiaBridge. Bodies without it are dropped, never cached. One download of a URL; throws on any transport or HTTP failure.

Exceptions / Errors

SkinFetchException
A skin download failure; the Dart stand-in for Android's IOException.