You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
957 B

5 years ago
  1. //
  2. // SlackTextViewController
  3. // https://github.com/slackhq/SlackTextViewController
  4. //
  5. // Copyright 2014-2016 Slack Technologies, Inc.
  6. // Licence: MIT-Licence
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. /** Generic protocol needed when customizing your own typing indicator view. */
  11. @protocol SLKTypingIndicatorProtocol <NSObject>
  12. @required
  13. /**
  14. Returns YES if the indicator is visible.
  15. SLKTextViewController depends on this property internally, by observing its value changes to update the typing indicator view's constraints automatically.
  16. You can simply @synthesize this property to make it KVO compliant, or override its setter method and wrap its implementation with -willChangeValueForKey: and -didChangeValueForKey: methods, for more complex KVO compliance.
  17. */
  18. @property (nonatomic, getter = isVisible) BOOL visible;
  19. @optional
  20. /**
  21. Dismisses the indicator view.
  22. */
  23. - (void)dismissIndicator;
  24. @end
  25. NS_ASSUME_NONNULL_END