EaseFaceView.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /************************************************************
  2. * * Hyphenate CONFIDENTIAL
  3. * __________________
  4. * Copyright (C) 2016 Hyphenate Inc. All rights reserved.
  5. *
  6. * NOTICE: All information contained herein is, and remains
  7. * the property of Hyphenate Inc.
  8. * Dissemination of this information or reproduction of this material
  9. * is strictly forbidden unless prior written permission is obtained
  10. * from Hyphenate Inc.
  11. */
  12. #import <UIKit/UIKit.h>
  13. #import "EaseFacialView.h"
  14. @protocol EMFaceDelegate
  15. @required
  16. /*!
  17. @method
  18. @brief 输入表情键盘的默认表情,或者点击删除按钮
  19. @discussion
  20. @param str 被选择的表情编码
  21. @param isDelete 是否为删除操作
  22. @result
  23. */
  24. - (void)selectedFacialView:(NSString *)str isDelete:(BOOL)isDelete;
  25. /*!
  26. @method
  27. @brief 点击表情键盘的发送回调
  28. @discussion
  29. @result
  30. */
  31. - (void)sendFace;
  32. /*!
  33. @method
  34. @brief 点击表情键盘的自定义表情,直接发送
  35. @discussion
  36. @param emotion 自定义表情对象
  37. @result
  38. */
  39. - (void)sendFaceWithEmotion:(EaseEmotion *)emotion;
  40. @end
  41. @interface EaseFaceView : UIView <EaseFacialViewDelegate>
  42. @property (nonatomic, assign) id<EMFaceDelegate> delegate;
  43. - (BOOL)stringIsFace:(NSString *)string;
  44. /*!
  45. @method
  46. @brief 通过数据源获取表情分组数,
  47. @discussion
  48. @param number 分组数
  49. @param emotionManagers 表情分组列表
  50. @result
  51. */
  52. - (void)setEmotionManagers:(NSArray*)emotionManagers;
  53. @end