EMPresenceManagerDelegate.h 840 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // EMPresenceManagerDelegate.h
  3. // HyphenateChat
  4. //
  5. // Created by lixiaoming on 2022/1/14.
  6. // Copyright © 2022 easemob.com. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "EMPresence.h"
  10. /*!
  11. * \~chinese
  12. * 在线状态相关代理协议,定义了在线状态变更回调。
  13. *
  14. * \~english
  15. * The delegate protocol that defines presence callbacks.
  16. */
  17. @protocol EMPresenceManagerDelegate <NSObject>
  18. @optional
  19. /*!
  20. * \~chinese
  21. * 被订阅用户的在线状态变更回调。
  22. *
  23. * @param presences 用户新的在线状态。
  24. *
  25. * \~english
  26. * Occurs when the presence state of a subscribed user changes.
  27. *
  28. * @param presences The new presence state of a subscribed user.
  29. */
  30. - (void) presenceStatusDidChanged:(NSArray<EMPresence*>* _Nonnull)presences;
  31. @end