JMessage-iOS-SDK

JMessage-iOS-SDK

HXHG

Jump To… Tasks + getFriendList: + sendInvitationRequestWithUsername:appKey:reason:completionHandler: + acceptInvitationWithUsername:appKey:completionHandler: + rejectInvitationWithUsername:appKey:reason:completionHandler: + removeFriendWithUsername:appKey:completionHandler:

# JMSGFriendManager Class Reference
Inherits from NSObject
Declared in JMSGFriendManager.h
### + getFriendList: 获取好友列表 + (void)getFriendList:(JMSGCompletionHandler)handler #### Parameters
handler 结果回调。回调参数: - resultObject 类型为 NSArray,数组里成员的类型为 JMSGUser - error 错误信息 如果 error 为 nil, 表示设置成功 如果 error 不为 nil,表示设置失败
#### Discussion 从服务器获取,异步返回结果,返回用户的好友列表。 建议开发者在 SDK 完全启动之后,再调用此接口获取数据 #### Declared In JMSGFriendManager.h ### + sendInvitationRequestWithUsername:appKey:reason:completionHandler: 发送添加好友请求 + (void)sendInvitationRequestWithUsername:(NSString *)username appKey:(NSString *)userAppKey reason:(NSString *)reason completionHandler:(JMSGCompletionHandler)handler #### Parameters
username 对方用户名
userAppKey 对方所在应用appkey,不传则默认是本应用
reason 添加好友时的备注,可不填
handler 结果回调。回调参数 - resultObject 相应的返回对象 - error 错误信息 如果 error 为 nil, 表示设置成功 如果 error 不为 nil,表示设置失败
#### Discussion 在对方未做回应的前提下,允许重复发送添加好友的请求。 #### Declared In JMSGFriendManager.h ### + acceptInvitationWithUsername:appKey:completionHandler: 接受好友邀请 + (void)acceptInvitationWithUsername:(NSString *)username appKey:(NSString *)userAppKey completionHandler:(JMSGCompletionHandler)handler #### Parameters
username 对方用户名
userAppKey 对方所在应用appkey,不传则默认是本应用
handler 结果回调。回调参数: - resultObject 相应的返回对象 - error 错误信息 如果 error 为 nil, 表示设置成功 如果 error 不为 nil,表示设置失败
#### Declared In JMSGFriendManager.h ### + rejectInvitationWithUsername:appKey:reason:completionHandler: 拒绝好友邀请 + (void)rejectInvitationWithUsername:(NSString *)username appKey:(NSString *)userAppKey reason:(NSString *)reason completionHandler:(JMSGCompletionHandler)handler #### Parameters
username 对方用户名
userAppKey 对方所在应用appkey,不传则默认是本应用
reason 拒绝理由,可不传
handler 结果回调。回调参数: - resultObject 相应的返回对象 - error 错误信息 如果 error 为 nil, 表示设置成功 如果 error 不为 nil,表示设置失败
#### Declared In JMSGFriendManager.h ### + removeFriendWithUsername:appKey:completionHandler: 删除好友 + (void)removeFriendWithUsername:(NSString *)username appKey:(NSString *)userAppKey completionHandler:(JMSGCompletionHandler)handler #### Parameters
username 好友username
userAppKey 好友所在应用appkey,不传则默认是本应用
handler 结果回调。回调参数: - resultObject 相应对象 - error 错误信息 如果 error 为 nil, 表示设置成功 如果 error 不为 nil,表示设置失败 @discussion
#### Declared In JMSGFriendManager.h

Copyright © 2019 HXHG. All rights reserved. Updated: 2019-05-06

Generated by appledoc 2.2.1 (build 1334).

若有收获,就点个赞吧

0 人点赞

暂无相关搜索结果!
    展开/收起文章目录