EaseFacialView.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. @class EaseEmotion;
  14. @protocol EaseFacialViewDelegate
  15. @optional
  16. /*!
  17. @method
  18. @brief 选中默认表情
  19. @discussion
  20. @param str 选中的默认表情
  21. @result
  22. */
  23. -(void)selectedFacialView:(NSString*)str;
  24. /*!
  25. @method
  26. @brief 删除默认表情
  27. @discussion
  28. @result
  29. */
  30. -(void)deleteSelected:(NSString *)str;
  31. /*!
  32. @method
  33. @brief 点击表情键盘的发送回调
  34. @discussion
  35. @result
  36. */
  37. -(void)sendFace;
  38. /*!
  39. @method
  40. @brief 选择自定义表情,直接发送
  41. @discussion
  42. @param emotion 被选中的自定义表情
  43. @result
  44. */
  45. -(void)sendFace:(EaseEmotion *)emotion;
  46. @end
  47. @class EaseEmotionManager;
  48. @interface EaseFacialView : UIView
  49. {
  50. NSMutableArray *_faces;
  51. }
  52. @property(nonatomic, weak) id<EaseFacialViewDelegate> delegate;
  53. @property(strong, nonatomic, readonly) NSArray *faces;
  54. -(void)loadFacialView:(NSArray*)emotionManagers size:(CGSize)size;
  55. -(void)loadFacialViewWithPage:(NSInteger)page;
  56. //-(void)loadFacialView:(int)page size:(CGSize)size;
  57. @end