HyphenateChatSDK 4.20.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
11typedef 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
39NS_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
75NS_ASSUME_NONNULL_END
Definition: EMStreamChunk.h:42
long sequenceNumber
Definition: EMStreamChunk.h:71
int16_t errorCode
Definition: EMStreamChunk.h:51
NSString *_Nullable customType
Definition: EMStreamChunk.h:66
EMStreamChunkStatus status
Definition: EMStreamChunk.h:46
NSString * text
Definition: EMStreamChunk.h:61
int16_t finishReason
Definition: EMStreamChunk.h:56