HyphenateChatSDK  4.19.0
EMStreamChunk.h
1 //
2 // EMStreamChunk.h
3 // HyphenateChat
4 //
5 // Created by 朱继超 on 12/25/25.
6 // Copyright © 2025 easemob.com. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 
11 typedef NS_ENUM(NSInteger,EMStreamChunkStatus) {
16  EMStreamChunkStatusStart = 0, // Stream started
21  EMStreamChunkStatusStartAndComplete, // Stream started and completed in one chunk (single fragment)
26  EMStreamChunkStatusProgress, // Stream in progress
31  EMStreamChunkStatusComplete, // Stream completed
36  EMStreamChunkStatusError // Stream ended with error
37 };
38 
39 NS_ASSUME_NONNULL_BEGIN
40 
41 @interface EMStreamChunk : NSObject
46 @property (nonatomic) EMStreamChunkStatus status;
51 @property (nonatomic) int16_t errorCode;
56 @property (nonatomic) int16_t finishReason;
61 @property (nonatomic, copy) NSString* text;
66 @property (nonatomic, copy) NSString *_Nullable customType;
71 @property (nonatomic) long sequenceNumber;
72 
73 @end
74 
75 NS_ASSUME_NONNULL_END
NSString *_Nullable customType
Definition: EMStreamChunk.h:66
NSString * text
Definition: EMStreamChunk.h:61
int16_t finishReason
Definition: EMStreamChunk.h:56
long sequenceNumber
Definition: EMStreamChunk.h:71
int16_t errorCode
Definition: EMStreamChunk.h:51
Definition: EMStreamChunk.h:41
EMStreamChunkStatus status
Definition: EMStreamChunk.h:46