提交
This commit is contained in:
61
TUIKit/TUIChat/UI_Classic/Input/TUIMoreView.h
Normal file
61
TUIKit/TUIChat/UI_Classic/Input/TUIMoreView.h
Normal file
@@ -0,0 +1,61 @@
|
||||
|
||||
// Created by Tencent on 2023/06/09.
|
||||
// Copyright © 2023 Tencent. All rights reserved.
|
||||
/**
|
||||
* This file declares the components used to implement the "more" view.
|
||||
* More view, the window that appears when you click the "+" button in the lower right corner of the chat window.
|
||||
* More view are usually responsible for providing some additional important functions, such as sending pictures, taking pictures and sending, sending videos,
|
||||
* sending files, etc. Currently TUIKit implements and provides the above four functions. If the above 4 functions cannot meet your functional requirements, you
|
||||
* can also add your custom unit in this view.
|
||||
*
|
||||
* TUIMoreView provides an entry for sending multimedia messages such as videos, pictures, and files based on the existing text messaging.
|
||||
* The TUIMoreViewDelegate protocol provides callbacks for more views in response to user actions.
|
||||
*/
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "TUIInputMoreCell.h"
|
||||
|
||||
@class TUIMoreView;
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TUIMoreViewDelegate
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@protocol TUIMoreViewDelegate <NSObject>
|
||||
|
||||
- (void)moreView:(TUIMoreView *)moreView didSelectMoreCell:(TUIInputMoreCell *)cell;
|
||||
|
||||
@end
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TUIMoreView
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/**
|
||||
* 【Module name】 TUIMoreView
|
||||
* 【Function description】More view are displayed after clicking the "+" on the far right of the input box.
|
||||
* This view can provide you with functional extensions on the current page. for example:
|
||||
* 1. Camera. Call the system camera to take a photo and send
|
||||
* 2. Photo. Select a picture from the system album and send it.
|
||||
* 3. Video. Select a video from the system gallery and send it.
|
||||
* 4. File. Select file from system files and send.
|
||||
*/
|
||||
@interface TUIMoreView : UIView
|
||||
|
||||
@property(nonatomic, strong) UIView *lineView;
|
||||
|
||||
@property(nonatomic, strong) UICollectionView *moreCollectionView;
|
||||
|
||||
@property(nonatomic, strong) UICollectionViewFlowLayout *moreFlowLayout;
|
||||
|
||||
@property(nonatomic, strong) UIPageControl *pageControl;
|
||||
|
||||
@property(nonatomic, weak) id<TUIMoreViewDelegate> delegate;
|
||||
|
||||
- (void)setData:(NSArray *)data;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user