EaseEmotionEscape.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 <Foundation/Foundation.h>
  13. #import <UIKit/UIKit.h>
  14. @interface EaseEmotionEscape : NSObject
  15. + (EaseEmotionEscape *)sharedInstance;
  16. + (NSMutableAttributedString *) attributtedStringFromText:(NSString *) aInputText;
  17. + (NSAttributedString *) attStringFromTextForChatting:(NSString *) aInputText;
  18. + (NSAttributedString *) attStringFromTextForInputView:(NSString *) aInputText;
  19. - (NSAttributedString *) attStringFromTextForChatting:(NSString *) aInputText textFont:(UIFont*)font;
  20. - (NSAttributedString *) attStringFromTextForInputView:(NSString *) aInputText textFont:(UIFont*)font;
  21. - (void) setEaseEmotionEscapePattern:(NSString*)pattern;
  22. - (void) setEaseEmotionEscapeDictionary:(NSDictionary*)dict;
  23. @end
  24. @interface EMTextAttachment : NSTextAttachment
  25. @property(nonatomic, strong) NSString *imageName;
  26. @end