NativeLensStreamProbeResult class
URL and manifest readiness result for a streaming preflight probe.
Constructors
-
NativeLensStreamProbeResult({required String url, required String finalUrl, required String riskLevel, required String severity, required bool canContinue, required bool isReachable, required bool isManifestReadable, required bool isLikelyHls, required bool hasVariantStreams, required bool hasMediaSegments, required List<
String> variantUrls, required List<String> segmentUrls, required List<String> reasons, required List<String> recommendations, required String userMessage, required String developerMessage, required int analyzedAtMillis, required String probeStage, int? statusCode, String? contentType, int? redirectCount, int? elapsedMillis, int? manifestByteLength, String? errorCode}) - Creates a stream probe result.
-
NativeLensStreamProbeResult.fromMap(Map<
Object?, Object?> map) -
Creates a stream probe result from a map using stable field names.
factory
Properties
- analyzedAtMillis → int
-
Analysis timestamp in milliseconds since epoch.
final
- canContinue → bool
-
Whether the app can continue under current probe findings.
final
- contentType → String?
-
Response content type hint, when available.
final
- developerMessage → String
-
Diagnostic message suitable for logs or developer tooling.
final
- elapsedMillis → int?
-
Probe duration in milliseconds, when available.
final
- errorCode → String?
-
Stable machine-readable error code, when the probe detected an error.
final
- finalUrl → String
-
Final URL after redirects, or the original URL when unchanged.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasMediaSegments → bool
-
Whether media segment URLs were found.
final
- hasVariantStreams → bool
-
Whether variant playlist URLs were found.
final
- isLikelyHls → bool
-
Whether the response appears to be an HLS manifest.
final
- isManifestReadable → bool
-
Whether a manifest body could be read.
final
- isReachable → bool
-
Whether the URL was reachable over HTTP.
final
- manifestByteLength → int?
-
Manifest body length in bytes, when available.
final
- probeStage → String
-
Current or final stage reached by the probe.
final
-
reasons
→ List<
String> -
Human-readable reasons for the probe result.
final
-
recommendations
→ List<
String> -
Suggested developer or product actions for the probe result.
final
- redirectCount → int?
-
Number of redirects followed during the probe, when available.
final
- riskLevel → String
-
Current risk level. Expected values are
low,medium, andhigh.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
segmentUrls
→ List<
String> -
Media segment URLs extracted from the manifest.
final
- severity → String
-
User-facing severity. Expected values are
info,warning, andcritical.final - statusCode → int?
-
HTTP status code returned by the final probe response, when available.
final
- url → String
-
Original URL requested by the developer.
final
- userMessage → String
-
Short message suitable for showing to an app user.
final
-
variantUrls
→ List<
String> -
Variant playlist URLs extracted from the manifest.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object?> - Serializes the result to a map using stable field names.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited