API reference

StreamError Enum

Represents all possible stream error types that can occur during camera streaming operations.
Each enum entry corresponds to a specific error scenario, identified by a unique string resource that provides the human-readable description. This class is part of the DAT SDK public API and should maintain API stability.

See Also

  • StreamSession for the streaming API that produces these errors
  • DatResult for type-safe error handling patterns
  • DatError for the base error interface

Signature

enum StreamError : Enum<StreamError> , DatError

Enumeration Constants

MemberDescription
STREAM_ERROR
Unspecified error, the stream can continue regardless.
CRITICAL_STREAM_ERROR
Critical error, the stream should end.
HINGE_CLOSED
The hinges on the glasses were closed.
PERMISSIONS_DENIED
Permissions denied.
THERMAL_HOT
Device thermal level is too high for streaming.
BATTERY_LOW
Device battery is too low for streaming.
PEAK_POWER_LIMIT
Device peak power limit reached.
TIMEOUT
The operation timed out.

Properties

description : String
[Get]
A human-readable description of the error suitable for logging and debugging purposes.
Signature
open override val description: String

Methods

getLocalizedDescription ( context )
Returns a localized description of the error using Android string resources when available.
Signature
open override fun getLocalizedDescription(context: Context?): String
Parameters
context: Context?  Optional Android context for accessing string resources. If null or if no localized string is available, returns the default StreamError.description.
Returns
String  The localized error description, or the default description if localization unavailable.