AgoraChatSDK 1.2.0
IAgoraChatPresenceManager.h
1//
2// IAgoraChatPresenceManager.h
3// AgoraChat
4//
5// Created by lixiaoming on 2022/1/14.
6// Copyright © 2022 easemob.com. All rights reserved.
7//
8
17#import <Foundation/Foundation.h>
18#import "AgoraChatPresenceManagerDelegate.h"
19#import "AgoraChatError.h"
20
25@protocol IAgoraChatPresenceManager <NSObject>
33- (void) publishPresenceWithDescription:(NSString*_Nullable )aDescription
34 completion:(void(^_Nullable )(AgoraChatError*_Nullable error))aCompletion;
43- (void) subscribe:(NSArray<NSString*>*_Nonnull)members
44 expiry:(NSInteger)expiry
45 completion:(void(^_Nullable )(NSArray<AgoraChatPresence*>*_Nullable presences,AgoraChatError*_Nullable error))aCompletion;
46
54- (void) unsubscribe:(NSArray<NSString*>*_Nonnull) members
55 completion:(void(^_Nullable )(AgoraChatError*_Nullable error))aCompletion;
56
65- (void) fetchSubscribedMembersWithPageNum:(NSUInteger)pageNum
66 pageSize:(NSUInteger)pageSize
67 Completion:(void(^_Nullable )(NSArray<NSString*>*_Nullable members,AgoraChatError*_Nullable error))aCompletion;
75- (void) fetchPresenceStatus:(NSArray<NSString*>*_Nonnull )members
76 completion:(void(^_Nullable )(NSArray<AgoraChatPresence*>* _Nullable presences,AgoraChatError*_Nullable error))aCompletion;
84- (void) addDelegate:(id<AgoraChatPresenceManagerDelegate> _Nonnull)aDelegate
85 delegateQueue:(dispatch_queue_t _Nullable )aQueue;
92- (void) removeDelegate:(id<AgoraChatPresenceManagerDelegate> _Nonnull)aDelegate;
93@end
94/* IAgoraChatPresenceManager_h */
95
96
Definition: AgoraChatError.h:18
Definition: AgoraChatPresence.h:33
Definition: AgoraChatPresenceManagerDelegate.h:16
Definition: IAgoraChatPresenceManager.h:25