即时通讯

  • 即时通讯 > API 文档 > iOS API 参考 > Protocol References > BMXRosterManager Protocol Reference

    BMXRosterManager Protocol Reference

    最近更新时间:2021-06-27 17:32:25

    BMXRosterManager Protocol Reference

    Conforms to NSObject
    Declared in BMXRosterManager.h

    - getRosterListforceRefresh:completion:

    • 获取好友列表

    - (void)getRosterListforceRefresh:(BOOL) _forceRefresh_ completion:(void ( ^ ) ( NSArray *rostIdList , BMXError *error )) _aCompletionBlock_

    Parameters

    forceRefresh 如果forceRefresh == true,则强制从服务端拉取
    aCompletionBlock 好友列表

    Discussion

    • 获取好友列表

    Declared In

    BMXRosterManager.h

    - searchByRosterId:forceRefresh:completion:

    通过好友ID搜索

    - (void)searchByRosterId:(long long) _rosterId_ forceRefresh:(BOOL) _forceRefresh_ completion:(void ( ^ ) ( BMXRoster *roster , BMXError *error )) _aCompletionBlock_

    Parameters

    rosterId 好友ID
    aCompletionBlock 好友

    Discussion

    通过好友ID搜索

    Declared In

    BMXRosterManager.h

    - searchByRoserName:forceRefresh:completion:

    通过好友Name搜索

    - (void)searchByRoserName:(NSString *) _name_ forceRefresh:(BOOL) _forceRefresh_ completion:(void ( ^ ) ( BMXRoster *roster , BMXError *error )) _aCompletionBlock_

    Parameters

    name 好友name
    aCompletionBlock 好友

    Discussion

    通过好友Name搜索

    Declared In

    BMXRosterManager.h

    - searchRostersByRosterIdList:forceRefresh:completion:

    批量搜索用户

    - (void)searchRostersByRosterIdList:(NSArray<NSNumber*> *) _rosterIdList_ forceRefresh:(BOOL) _forceRefresh_ completion:(void ( ^ ) ( NSArray<BMXRoster*> *rosterList , BMXError *error )) _aCompletionBlock_

    Parameters

    rosterIdList id
    forceRefresh 如果forceRefresh == true,则强制从服务端拉取
    aCompletionBlock rosterList,error

    Discussion

    批量搜索用户

    Declared In

    BMXRosterManager.h

    - updateItemExtensionByRoster:extensionJson:completion:

    更新好友扩展信息

    - (void)updateItemExtensionByRoster:(BMXRoster *) _roster_ extensionJson:(NSString *) _extensionJson_ completion:(void ( ^ ) ( BMXRoster *roster , NSString *extensionJson )) _aCompletionBlock_

    Discussion

    更新好友扩展信息

    Declared In

    BMXRosterManager.h

    - updateItemLocalExtensionByRoster:localExtensionJson:completion:

    更新好友本地扩展信息

    - (void)updateItemLocalExtensionByRoster:(BMXRoster *) _roster_ localExtensionJson:(NSString *) _localExtensionJson_ completion:(void ( ^ ) ( BMXRoster *roster , BMXError *error )) _aCompletionBlock_

    Discussion

    更新好友本地扩展信息

    Declared In

    BMXRosterManager.h

    - updateItemAliasByRoster:aliasJson:completion:

    更新好友别名

    - (void)updateItemAliasByRoster:(BMXRoster *) _roster_ aliasJson:(NSString *) _aliasJson_ completion:(void ( ^ ) ( BMXRoster *roster , BMXError *error )) _aCompletionBlock_

    Discussion

    更新好友别名

    Declared In

    BMXRosterManager.h

    - muteNotificationByRoster:muteNotificationStatus:completion:

    设置是否拒收用户消息

    - (void)muteNotificationByRoster:(BMXRoster *) _roster_ muteNotificationStatus:(BOOL) _muteNotificationStatus_ completion:(void ( ^ ) ( BMXRoster *roster , BMXError *error )) _aCompletionBlock_

    Discussion

    设置是否拒收用户消息

    Declared In

    BMXRosterManager.h

    - getApplicationListWithCursor:pageSize:completion:

    获取申请添加好友列表

    - (void)getApplicationListWithCursor:(NSString *) _cursor_ pageSize:(int) _pageSize_ completion:(void ( ^ ) ( NSArray *applicationList , NSString *cursor , int offset , BMXError *error )) _aCompletionBlock_

    Discussion

    获取申请添加好友列表

    Declared In

    BMXRosterManager.h

    - applyAddRoster:reason:completion:

    申请添加好友

    - (void)applyAddRoster:(long long) _roster_ reason:(NSString *) _reason_ completion:(void ( ^ ) ( BMXRoster *roster , BMXError *error )) _aCompletionBlock_

    Discussion

    申请添加好友

    Declared In

    BMXRosterManager.h

    - removeRosterById:withCompletion:

    删除好友

    - (void)removeRosterById:(long long) _rostId_ withCompletion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Discussion

    删除好友

    Declared In

    BMXRosterManager.h

    - acceptRosterById:withCompletion:

    接受加好友申请

    - (void)acceptRosterById:(NSInteger) _rosterId_ withCompletion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Discussion

    接受加好友申请

    Declared In

    BMXRosterManager.h

    - declineRosterById:withReason:completion:

    拒绝加好友申请

    - (void)declineRosterById:(NSInteger) _rosterId_ withReason:(NSString *) _reason_ completion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Discussion

    拒绝加好友申请

    Declared In

    BMXRosterManager.h

    - addToBlockList:withCompletion:

    加入黑名单

    - (void)addToBlockList:(long long) _rosterId_ withCompletion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Discussion

    加入黑名单

    Declared In

    BMXRosterManager.h

    - removeRosterFromBlockList:withCompletion:

    从黑名单移除

    - (void)removeRosterFromBlockList:(NSInteger) _rostId_ withCompletion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Discussion

    从黑名单移除

    Declared In

    BMXRosterManager.h

    - downloadAvatarWithRoster:progress:completion:

    下载头像

    - (void)downloadAvatarWithRoster:(BMXRoster *) _roster_ progress:(void ( ^ ) ( int progress , BMXError *error )) _aProgress_ completion:(void ( ^ ) ( BMXRoster *roster , BMXError *error )) _aCompletion_

    Discussion

    下载头像

    Declared In

    BMXRosterManager.h

    - getBlockListforceRefresh:completion:

    • 获取黑名单

    - (void)getBlockListforceRefresh:(BOOL) _forceRefresh_ completion:(void ( ^ ) ( NSArray *blockList , BMXError *error )) _aCompletionBlock_

    Parameters

    forceRefresh 如果forceRefresh == true,则强制从服务端拉取
    aCompletionBlock BlockList ,Error

    Discussion

    • 获取黑名单

    Declared In

    BMXRosterManager.h

    - addRosterListener:

    添加好友变化监听者

    - (void)addRosterListener:(id<BMXRosterServiceProtocol>) _listener_

    Discussion

    添加好友变化监听者

    Declared In

    BMXRosterManager.h

    - removeRosterListener:

    移除好友变化监听者

    - (void)removeRosterListener:(id<BMXRosterServiceProtocol>) _listener_

    Discussion

    移除好友变化监听者

    Declared In

    BMXRosterManager.h

    以上内容是否对您有帮助?
  • Qvm free helper
    Close