AgoraChatSDK 1.0.7
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
23#import <Foundation/Foundation.h>
24#import "AgoraChatPresenceManagerDelegate.h"
25#import "AgoraChatError.h"
26
34@protocol IAgoraChatPresenceManager <NSObject>
48- (void) publishPresenceWithDescription:(NSString*_Nullable )aDescription
49 completion:(void(^_Nullable )(AgoraChatError*_Nullable error))aCompletion;
65- (void) subscribe:(NSArray<NSString*>*_Nonnull)members
66 expiry:(NSInteger)expiry
67 completion:(void(^_Nullable )(NSArray<AgoraChatPresence*>*_Nullable presences,AgoraChatError*_Nullable error))aCompletion;
68
82- (void) unsubscribe:(NSArray<NSString*>*_Nonnull) members
83 completion:(void(^_Nullable )(AgoraChatError*_Nullable error))aCompletion;
84
100- (void) fetchSubscribedMembersWithPageNum:(NSUInteger)pageNum
101 pageSize:(NSUInteger)pageSize
102 Completion:(void(^_Nullable )(NSArray<NSString*>*_Nullable members,AgoraChatError*_Nullable error))aCompletion;
116- (void) fetchPresenceStatus:(NSArray<NSString*>*_Nonnull )members
117 completion:(void(^_Nullable )(NSArray<AgoraChatPresence*>* _Nullable presences,AgoraChatError*_Nullable error))aCompletion;
131- (void) addDelegate:(id<AgoraChatPresenceManagerDelegate> _Nonnull)aDelegate
132 delegateQueue:(dispatch_queue_t _Nullable )aQueue;
144- (void) removeDelegate:(id<AgoraChatPresenceManagerDelegate> _Nonnull)aDelegate;
145@end
146/* IAgoraChatPresenceManager_h */
147
148
Definition: AgoraChatError.h:27
Definition: AgoraChatPresence.h:45
Definition: AgoraChatPresenceManagerDelegate.h:19
Definition: IAgoraChatPresenceManager.h:34