Files
keyboard/CustomKeyboard/View/Function/KBStreamOverlayView.h

29 lines
610 B
C
Raw Normal View History

2025-11-12 16:03:30 +08:00
//
// KBStreamOverlayView.h
// 自带关闭按钮的流式展示层,内部持有 KBStreamTextView。
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@class KBStreamTextView, KBStreamOverlayView;
@protocol KBStreamOverlayViewDelegate <NSObject>
@optional
- (void)streamOverlayDidTapClose:(KBStreamOverlayView *)overlay;
@end
@interface KBStreamOverlayView : UIView
@property (nonatomic, strong, readonly) KBStreamTextView *textView;
@property (nonatomic, weak, nullable) id<KBStreamOverlayViewDelegate> delegate;
- (void)appendChunk:(NSString *)text;
- (void)finish;
@end
NS_ASSUME_NONNULL_END