api/internal/media_load_failure
library
Enums
-
MediaKind
-
The
media_kind health 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.
-
mediaErrorListener(BuildContext context, MediaKind kind, String url)
→ void Function(Object error)
-
A media library error callback for
url, bound to the campaign now.
-
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 is not reported.