单军华
2018-07-11 acdf41fa3b32b628d9d7bba1f975060567dad3d7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
/************************************************************
 *  * Hyphenate CONFIDENTIAL
 * __________________
 * Copyright (C) 2016 Hyphenate Inc. All rights reserved.
 *
 * NOTICE: All information contained herein is, and remains
 * the property of Hyphenate Inc.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from Hyphenate Inc.
 */
 
#import <UIKit/UIKit.h>
 
typedef enum{
    EMChatToolbarTypeChat,
    EMChatToolbarTypeGroup,
}EMChatToolbarType;
 
@protocol EaseChatBarMoreViewDelegate;
@interface EaseChatBarMoreView : UIView
 
@property (nonatomic,assign) id<EaseChatBarMoreViewDelegate> delegate;
 
@property (nonatomic) UIColor *moreViewBackgroundColor UI_APPEARANCE_SELECTOR;  //moreview背景颜色,default whiteColor
 
/*
 
 */
- (instancetype)initWithFrame:(CGRect)frame type:(EMChatToolbarType)type;
 
/*!
 @method
 @brief 新增一个新的功能按钮
 @discussion
 @param image 按钮图片
 @param highLightedImage 高亮图片
 @param title 按钮标题
 @result
 */
- (void)insertItemWithImage:(UIImage*)image
           highlightedImage:(UIImage*)highLightedImage
                      title:(NSString*)title;
 
/*!
 @method
 @brief 修改功能按钮图片
 @discussion
 @param image 按钮图片
 @param highLightedImage 高亮图片
 @param title 按钮标题
 @param index 按钮索引
 @result
 */
- (void)updateItemWithImage:(UIImage*)image
           highlightedImage:(UIImage*)highLightedImage
                      title:(NSString*)title
                    atIndex:(NSInteger)index;
 
/*!
 @method
 @brief 根据索引删除功能按钮
 @discussion
 @param index 按钮索引
 @result
 */
- (void)removeItematIndex:(NSInteger)index;
 
@end
 
@protocol EaseChatBarMoreViewDelegate <NSObject>
 
@optional
 
/*!
  @method
  @brief 拍照
  @discussion
  @param moreView 功能view
  @result
  */
- (void)moreViewTakePicAction:(EaseChatBarMoreView *)moreView;
 
/*!
 @method
 @brief 相册
 @discussion
 @param moreView 功能view
 @result
 */
- (void)moreViewPhotoAction:(EaseChatBarMoreView *)moreView;
 
/*!
 @method
 @brief 发送位置
 @discussion
 @param moreView 功能view
 @result
 */
- (void)moreViewLocationAction:(EaseChatBarMoreView *)moreView;
 
/*!
 @method
 @brief 拨打实时语音
 @discussion
 @param moreView 功能view
 @result
 */
- (void)moreViewAudioCallAction:(EaseChatBarMoreView *)moreView;
 
/*!
 @method
 @brief 拨打实时通话
 @discussion
 @param moreView 功能view
 @result
 */
- (void)moreViewVideoCallAction:(EaseChatBarMoreView *)moreView;
 
/*!
 @method
 @brief 自定义功能
 @discussion
 @param moreView    功能view
 @param index       按钮索引
 @result
 */
- (void)moreView:(EaseChatBarMoreView *)moreView didItemInMoreViewAtIndex:(NSInteger)index;
 
@end