RxPhoto class

Returns a photo as a JPEG image from Frame. Pairs with frame.camera.read_raw(), that is, jpeg header and footer are not sent from Frame - only the content, using non-final and final message types Jpeg header and footer are added in here on the client, so a quality level must be provided to select the correct header. Returns a Stream with exactly one jpeg as bytes, then is Done

Constructors

RxPhoto({int nonFinalChunkFlag = 0x07, int finalChunkFlag = 0x08, int qualityLevel = 10})
qualityLevel must be valid (10, 25, 50, 100)

Properties

finalChunkFlag int
final
hashCode int
The hash code for this object.
no setterinherited
nonFinalChunkFlag int
final
qualityLevel int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

attach(Stream<List<int>> dataResponse) Stream<Uint8List>
Attach this RxPhoto to the Frame's dataResponse characteristic stream.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited