蓝莺开发者
Web & Mini ProgramiOSAndroidC++Server API

BMXRosterServiceProtocol Protocol Reference#

Conforms to NSObject
Declared in floo_proxy.h

Overview#

@protocol 好友服务监听者

Instance Methods#

friendAddedSponsorId:recipientId:#

添加好友

- (void)friendAddedSponsorId:(long long)sponsorId recipientId:(long long)recipientId

Parameters#

sponsorId
发起方

recipientId
接受方

Declared In#

  • floo_proxy.h


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXRosterServiceProtocol",function="friendAddedSponsorId:recipientId:" %}{% endlanying_code_snippet %}

friendAddedtoBlockListSponsorId:recipientId:#

添加黑名单

- (void)friendAddedtoBlockListSponsorId:(long long)sponsorId recipientId:(long long)recipientId

Parameters#

sponsorId
发起方

recipientId
接受方

Declared In#

  • floo_proxy.h


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXRosterServiceProtocol",function="friendAddedtoBlockListSponsorId:recipientId:" %}{% endlanying_code_snippet %}

friendDidApplicationAcceptedFromSponsorId:recipientId:#

加好友申请被通过了 用户B同意用户A的加好友请求后,用户A会收到这个回调

- (void)friendDidApplicationAcceptedFromSponsorId:(long long)sponsorId recipientId:(long long)recipientId

Parameters#

sponsorId
发起方

recipientId
接受方

Declared In#

  • floo_proxy.h


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXRosterServiceProtocol",function="friendDidApplicationAcceptedFromSponsorId:recipientId:" %}{% endlanying_code_snippet %}

friendDidApplicationDeclinedFromSponsorId:recipientId:reson:#

加好友申请被拒绝了 用户B拒绝用户A的加好友请求后,用户A会收到这个回调

- (void)friendDidApplicationDeclinedFromSponsorId:(long long)sponsorId recipientId:(long long)recipientId reson:(NSString )reason*

Parameters#

sponsorId
发起方

recipientId
接受方

reason
拒绝理由

Declared In#

  • floo_proxy.h


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXRosterServiceProtocol",function="friendDidApplicationDeclinedFromSponsorId:recipientId:reson:" %}{% endlanying_code_snippet %}

friendDidRecivedAppliedSponsorId:recipientId:message:#

收到加好友申请 用户B申请加A为好友后,用户A会收到这个回调

- (void)friendDidRecivedAppliedSponsorId:(long long)sponsorId recipientId:(long long)recipientId message:(NSString )message*

Parameters#

sponsorId
发起方

recipientId
接受方

message
好友邀请信息

Declared In#

  • floo_proxy.h


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXRosterServiceProtocol",function="friendDidRecivedAppliedSponsorId:recipientId:message:" %}{% endlanying_code_snippet %}

friendRemovedFromBlockListSponsorId:recipientId:#

删除黑名单

- (void)friendRemovedFromBlockListSponsorId:(long long)sponsorId recipientId:(long long)recipientId

Parameters#

sponsorId
发起方

recipientId
接受方

Declared In#

  • floo_proxy.h


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXRosterServiceProtocol",function="friendRemovedFromBlockListSponsorId:recipientId:" %}{% endlanying_code_snippet %}

friendRemovedSponsorId:recipientId:#

删除好友 用户B删除与用户A的好友关系后,用户A会收到这个回调

- (void)friendRemovedSponsorId:(long long)sponsorId recipientId:(long long)recipientId

Parameters#

sponsorId
发起方

recipientId
接受方

Declared In#

  • floo_proxy.h


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXRosterServiceProtocol",function="friendRemovedSponsorId:recipientId:" %}{% endlanying_code_snippet %}

rosterInfoDidUpdate:#

用户信息更新

- (void)rosterInfoDidUpdate:(BMXRosterItem )roster*

Discussion#

用户信息更新

Declared In#

  • floo_proxy.h

Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXRosterServiceProtocol",function="rosterInfoDidUpdate:" %}{% endlanying_code_snippet %}
自动生成的 API 内容,仅在必要位置补充精简的 AI 解释。