Files
keyboard/keyBoard/Class/AiTalk/V/Comment/KBAICommentView.h

40 lines
850 B
Objective-C

//
// KBAICommentView.h
// keyBoard
//
// Created by Mac on 2026/1/16.
//
#import <UIKit/UIKit.h>
#import <LSTPopView/LSTPopView.h>
NS_ASSUME_NONNULL_BEGIN
@class KBAICommentView;
@protocol KBAICommentViewDelegate <NSObject>
@optional
/// 评论总数变化回调(例如发送评论/回复成功后)
- (void)commentView:(KBAICommentView *)view didUpdateTotalCommentCount:(NSInteger)totalCommentCount;
@end
/// 抖音风格评论视图
@interface KBAICommentView : UIView
@property(nonatomic, weak, nullable) id<KBAICommentViewDelegate> delegate;
/// AI 陪聊角色 ID
@property(nonatomic, assign) NSInteger companionId;
/// 加载评论数据(从网络)
- (void)loadComments;
/// 评论总数
@property(nonatomic, assign) NSInteger totalCommentCount;
@property(nonatomic, weak) LSTPopView *popView
;
@end
NS_ASSUME_NONNULL_END