api/internal/media_load_failure library
Enums
- MediaKind
-
The
media_kindhealth detail, mapped explicitly to its wire value.
Functions
-
mediaCampaignKey(
BuildContext context) → String? -
The campaign that owns the media under
context, if a surface named one. -
mediaFailureCause(
String url, Object error) → String? - The health cause for a media error, or null for network and 5xx noise.
-
reportMediaLoadFailed(
String? campaignKey, MediaKind kind, String url, Object error) → void - Reports a media load error the campaign author can fix. Call it only from a media library error callback, never from a build. Media outside a campaign reports with no campaign key.