SLKVisibleViewProtocol.h 930 B

123456789101112131415161718192021222324252627282930313233
  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 reply view. */
  11. @protocol SLKVisibleViewProtocol <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 reply 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)dismiss;
  24. @end
  25. NS_ASSUME_NONNULL_END