HyphenateChatSDK 3.9.9.1
IEMPresenceManager.h
1//
2// IEMPresenceManager.h
3// HyphenateChat
4//
5// Created by lixiaoming on 2022/1/14.
6// Copyright © 2022 easemob.com. All rights reserved.
7//
8
23#import <Foundation/Foundation.h>
24#import "EMPresenceManagerDelegate.h"
25#import "EMError.h"
26
34@protocol IEMPresenceManager <NSObject>
48- (void) publishPresenceWithDescription:(NSString*_Nullable )aDescription
49 completion:(void(^_Nullable )(EMError*_Nullable error))aCompletion;
65- (void) subscribe:(NSArray<NSString*>*_Nonnull)members
66 expiry:(NSInteger)expiry
67 completion:(void(^_Nullable )(NSArray<EMPresence*>*_Nullable presences,EMError*_Nullable error))aCompletion;
68
82- (void) unsubscribe:(NSArray<NSString*>*_Nonnull) members
83 completion:(void(^_Nullable )(EMError*_Nullable error))aCompletion;
84
100- (void) fetchSubscribedMembersWithPageNum:(NSUInteger)pageNum
101 pageSize:(NSUInteger)pageSize
102 Completion:(void(^_Nullable )(NSArray<NSString*>*_Nullable members,EMError*_Nullable error))aCompletion;
116- (void) fetchPresenceStatus:(NSArray<NSString*>*_Nonnull )members
117 completion:(void(^_Nullable )(NSArray<EMPresence*>* _Nullable presences,EMError*_Nullable error))aCompletion;
131- (void) addDelegate:(id<EMPresenceManagerDelegate> _Nonnull)aDelegate
132 delegateQueue:(dispatch_queue_t _Nullable )aQueue;
144- (void) removeDelegate:(id<EMPresenceManagerDelegate> _Nonnull)aDelegate;
145@end
146/* IEMPresenceManager_h */
147
148
Definition: EMError.h:27
Definition: EMPresence.h:45
Definition: EMPresenceManagerDelegate.h:19
Definition: IEMPresenceManager.h:34