CCKeyboardModel.h 946 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // CCKeyboardModel.h
  3. // CustomKeyboard
  4. //
  5. // Created by Ternence on 2021/5/14.
  6. //
  7. #import <Foundation/Foundation.h>
  8. NS_ASSUME_NONNULL_BEGIN
  9. typedef NS_ENUM(NSUInteger, CCKeyboardAction) {
  10. CCKeyboardActionText = 0, //文本
  11. CCKeyboardActionAdd, //添加
  12. CCKeyboardActionDelete, //删除字符
  13. CCKeyboardActionWrap, //换行
  14. CCKeyboardActionSymbol, //符号
  15. CCKeyboardActionSpace, //空格
  16. CCKeyboardActionSwitchBoard, //切换键盘
  17. };
  18. @interface CCKeyboardModel : NSObject
  19. /// 自定义的字符串
  20. @property (nonatomic, copy) NSString *string;
  21. @property (nonatomic, assign) CCKeyboardAction keyboardAction;
  22. + (CCKeyboardModel *)analyzeModelWithDict:(NSDictionary *)dict;
  23. + (NSArray<NSDictionary *> *)leftKeyboardModelDicts;
  24. + (NSArray<NSDictionary *> *)centerKeyboardModelDicts;
  25. + (NSArray<NSDictionary *> *)rightKeyboardModelDicts;
  26. @end
  27. NS_ASSUME_NONNULL_END