im::floo::floolib::BMXGroupServiceListener
Group change listener
Public Functions
Name | |
---|---|
synchronized void | delete() |
void | swigReleaseOwnership() |
void | swigTakeOwnership() |
void | onGroupCreate(BMXGroup group) Create a group |
void | onGroupListUpdate(BMXGroupList list) Group list updated |
void | onGroupJoined(BMXGroup group) Join a group |
void | onGroupLeft(BMXGroup group, String reason) Quit a group |
void | onInvitated(long groupId, long inviter, String message) Group invitation received |
void | onInvitationAccepted(BMXGroup group, long inviteeId) Group invitation accepted |
void | onInvitationDeclined(BMXGroup group, long inviteeId, String reason) Join group rejected |
void | onApplied(BMXGroup group, long applicantId, String message) Group membership application received |
void | onApplicationAccepted(BMXGroup group, long approver) Join group accepted |
void | onApplicationDeclined(BMXGroup group, long approver, String reason) Join group rejected |
void | onMembersBanned(BMXGroup group, ListOfLongLong members, long duration) Member banned |
void | onMembersUnbanned(BMXGroup group, ListOfLongLong members) Member unbanned |
void | onMemberJoined(BMXGroup group, long memberId, long inviter) New member added |
void | onMemberLeft(BMXGroup group, long memberId, String reason) Member quit |
void | onAdminsAdded(BMXGroup group, ListOfLongLong members) New Admin added |
void | onAdminsRemoved(BMXGroup group, ListOfLongLong members, String reason) Admin removed |
void | onOwnerAssigned(BMXGroup group) Become group Owner |
void | onGroupInfoUpdate(BMXGroup group, BMXGroup.UpdateInfoType type) Group information changes |
void | onMemberChangeNickName(BMXGroup group, long memberId, String nickName) Member nickname changed |
void | onAnnouncementUpdate(BMXGroup group, BMXGroup.Announcement announcement) Group announcement updated |
void | onSharedFileUploaded(BMXGroup group, BMXGroup.SharedFile sharedFile) Shared file received |
void | onSharedFileDeleted(BMXGroup group, BMXGroup.SharedFile sharedFile) Shared file deleted |
void | onSharedFileUpdated(BMXGroup group, BMXGroup.SharedFile sharedFile) Name of shared file updated |
void | onBlockListAdded(BMXGroup group, ListOfLongLong members) Add to blacklist |
void | onBlockListRemoved(BMXGroup group, ListOfLongLong members) Delete blacklist |
void | onGroupListUpdate() Triggered when client pulls a new group from server, used to update user group list, and call local fetching group via SDK for all member information |
BMXGroupServiceListener() | |
void | registerGroupService(BMXGroupService service) |
Protected Functions
Name | |
---|---|
BMXGroupServiceListener(long cPtr, boolean cMemoryOwn) | |
void | finalize() |
void | swigDirectorDisconnect() |
long | getCPtr(BMXGroupServiceListener obj) |
Protected Attributes
Name | |
---|---|
transient boolean | swigCMemOwn |
Public Functions Documentation
function delete
inline synchronized void delete()
Example:
function swigReleaseOwnership
inline void swigReleaseOwnership()
Example:
function swigTakeOwnership
inline void swigTakeOwnership()
Example:
function onGroupCreate
inline void onGroupCreate(
BMXGroup group
)
Create a group
Parameters:
- group Newly created group
Example:
public void onGroupCreate(BMXGroup group) {
super.onGroupCreate(group);
// toastListener("onGroupCreate");
}
function onGroupListUpdate
inline void onGroupListUpdate(
BMXGroupList list
)
Group list updated
Parameters:
- list Updated group list
Example:
public void onGroupListUpdate(BMXGroupList list) {
super.onGroupListUpdate(list);
// toastListener("onGroupListUpdate");
}
function onGroupJoined
inline void onGroupJoined(
BMXGroup group
)
Join a group
Parameters:
- group Group to join
Example:
public void onGroupJoined(BMXGroup group) {
super.onGroupJoined(group);
// toastListener("onGroupJoined");
}
function onGroupLeft
inline void onGroupLeft(
BMXGroup group,
String reason
)
Quit a group
Parameters:
- group Group to quit
- reason Quit reason
Example:
public void onGroupLeft(BMXGroup group, String reason) {
super.onGroupLeft(group, reason);
// toastListener("onGroupLeft");
}
function onInvitated
inline void onInvitated(
long groupId,
long inviter,
String message
)
Group invitation received
Parameters:
- groupId Group id invited to
- inviter Inviter id
- message Invitation reason
Example:
public void onInvitated(long groupId, long inviter, String message) {
super.onInvitated(groupId, inviter, message);
// toastListener("onInvitated");
}
function onInvitationAccepted
inline void onInvitationAccepted(
BMXGroup group,
long inviteeId
)
Group invitation accepted
Parameters:
- group A group in which invitation approved
- inviteeId Invitee id
Example:
public void onInvitationAccepted(BMXGroup group, long inviteeId) {
super.onInvitationAccepted(group, inviteeId);
// toastListener("onInvitationAccepted");
}
function onInvitationDeclined
inline void onInvitationDeclined(
BMXGroup group,
long inviteeId,
String reason
)
Join group rejected
Parameters:
- group A group in which invitation rejected
- inviteeId Invitee id
- reason Rejection reason
Example:
public void onInvitationDeclined(BMXGroup group, long inviteeId, String reason) {
super.onInvitationDeclined(group, inviteeId, reason);
// toastListener("onInvitationDeclined");
}
function onApplied
inline void onApplied(
BMXGroup group,
long applicantId,
String message
)
Group membership application received
Parameters:
- group A group in which received membership application
- applicantId Applicant id
- message Application reason
Example:
public void onApplied(BMXGroup group, long applicantId, String message) {
super.onApplied(group, applicantId, message);
// toastListener("onApplied");
}
function onApplicationAccepted
inline void onApplicationAccepted(
BMXGroup group,
long approver
)
Join group accepted
Parameters:
- group Group where membership application was accepted
- approver Approver of the application
Example:
public void onApplicationAccepted(BMXGroup group, long approver) {
super.onApplicationAccepted(group, approver);
// toastListener("onApplicationAccepted");
}
function onApplicationDeclined
inline void onApplicationDeclined(
BMXGroup group,
long approver,
String reason
)
Join group rejected
Parameters:
- group Group where membership application was rejected
- approver Approver of the application
- reason Reason for rejection
Example:
public void onApplicationDeclined(BMXGroup group, long approver, String reason) {
super.onApplicationDeclined(group, approver, reason);
// toastListener("onApplicationDeclined");
}
function onMembersBanned
inline void onMembersBanned(
BMXGroup group,
ListOfLongLong members,
long duration
)
Member banned
Parameters:
- group Group with member banned
- members List of banned member ids
- duration Duration of banned
Example:
public void onMembersBanned(BMXGroup group, ListOfLongLong members, long duration) {
super.onMembersBanned(group, members, duration);
// toastListener("onMembersBanned");
}
function onMembersUnbanned
inline void onMembersUnbanned(
BMXGroup group,
ListOfLongLong members
)
Member unbanned
Parameters:
- group Group with member unbanned
- members List of unbanned group member ids
Example:
public void onMembersUnbanned(BMXGroup group, ListOfLongLong members) {
super.onMembersUnbanned(group, members);
// toastListener("onMembersUnbanned");
}
function onMemberJoined
inline void onMemberJoined(
BMXGroup group,
long memberId,
long inviter
)
New member added
Parameters:
- group Group with new member added
- memberId ID of added member
- inviter Inviter id
Example:
public void onMemberJoined(BMXGroup group, long memberId, long inviter) {
super.onMemberJoined(group, memberId, inviter);
// toastListener("onMemberJoined");
}
function onMemberLeft
inline void onMemberLeft(
BMXGroup group,
long memberId,
String reason
)
Member quit
Parameters:
- group Group with member quitting
- memberId ID of quitted member
- reason Reason for quitting
Example:
public void onMemberLeft(BMXGroup group, long memberId, String reason) {
super.onMemberLeft(group, memberId, reason);
// toastListener("onMemberLeft");
}
function onAdminsAdded
inline void onAdminsAdded(
BMXGroup group,
ListOfLongLong members
)
New Admin added
Parameters:
- group Group where addition of new Admin occurred
- members List of members promoted to Admins
Example:
public void onAdminsAdded(BMXGroup group, ListOfLongLong members) {
super.onAdminsAdded(group, members);
// toastListener("onAdminsAdded");
}
function onAdminsRemoved
inline void onAdminsRemoved(
BMXGroup group,
ListOfLongLong members,
String reason
)
Admin removed
Parameters:
- group Group where Admin removal occurred
- members List of members degraded from Admins
- reason Reason for removal
Example:
public void onAdminsRemoved(BMXGroup group, ListOfLongLong members, String reason) {
super.onAdminsRemoved(group, members, reason);
// toastListener("onAdminsRemoved");
}
function onOwnerAssigned
inline void onOwnerAssigned(
BMXGroup group
)
Become group Owner
Parameters:
- group A group in which group Owner transferred
Example:
public void onOwnerAssigned(BMXGroup group) {
super.onOwnerAssigned(group);
// toastListener("onOwnerAssigned");
}
function onGroupInfoUpdate
inline void onGroupInfoUpdate(
BMXGroup group,
BMXGroup.UpdateInfoType type
)
Group information changes
Parameters:
- group Group with group information changed
- type Type of group information that changed
Example:
public void onGroupInfoUpdate(BMXGroup group, BMXGroup.UpdateInfoType type) {
((Activity)mView.getContext()).runOnUiThread(() -> updateInputBar(group));
}
public void onGroupInfoUpdate(BMXGroup group, BMXGroup.UpdateInfoType type) {
super.onGroupInfoUpdate(group, type);
// toastListener("onGroupInfoUpdate");
RosterFetcher.getFetcher().putGroup(group);
downloadGroupAvatar(group);
Intent intent = new Intent();
intent.setAction("onShowReadAckUpdated");
intent.putExtra("onShowReadAckUpdated", group != null && group.enableReadAck());
RxBus.getInstance().send(intent);
}
function onMemberChangeNickName
inline void onMemberChangeNickName(
BMXGroup group,
long memberId,
String nickName
)
Member nickname changed
Parameters:
- group A group in which member nickname changed
- memberId Group member id that changed group nickname
- nickName Changed group nickname
Example:
public void onMemberChangeNickName(BMXGroup group, long memberId, String nickName) {
super.onMemberChangeNickName(group, memberId, nickName);
// toastListener("onMemberChangeNickName");
}
function onAnnouncementUpdate
inline void onAnnouncementUpdate(
BMXGroup group,
BMXGroup.Announcement announcement
)
Group announcement updated
Parameters:
- group Group where announcement update occurred
- announcement Latest group announcement after changed
Example:
public void onAnnouncementUpdate(BMXGroup group, BMXGroup.Announcement announcement) {
super.onAnnouncementUpdate(group, announcement);
// toastListener("onAnnouncementUpdate");
}
function onSharedFileUploaded
inline void onSharedFileUploaded(
BMXGroup group,
BMXGroup.SharedFile sharedFile
)
Shared file received
Parameters:
- group A group in which shared file uploading occurred
- sharedFile Newly uploaded group shared file
Example:
public void onSharedFileUploaded(BMXGroup group, BMXGroup.SharedFile sharedFile) {
super.onSharedFileUploaded(group, sharedFile);
// toastListener("onSharedFileUploaded");
}
function onSharedFileDeleted
inline void onSharedFileDeleted(
BMXGroup group,
BMXGroup.SharedFile sharedFile
)
Shared file deleted
Parameters:
- group A group in which shared file deleted
- sharedFile Deleted group shared file
Example:
public void onSharedFileDeleted(BMXGroup group, BMXGroup.SharedFile sharedFile) {
super.onSharedFileDeleted(group, sharedFile);
// toastListener("onSharedFileDeleted");
}
function onSharedFileUpdated
inline void onSharedFileUpdated(
BMXGroup group,
BMXGroup.SharedFile sharedFile
)
Name of shared file updated
Parameters:
- group A group in which share file updated
- sharedFile Updated group shared file
Example:
public void onSharedFileUpdated(BMXGroup group, BMXGroup.SharedFile sharedFile) {
super.onSharedFileUpdated(group, sharedFile);
// toastListener("onSharedFileUpdated");
}
function onBlockListAdded
inline void onBlockListAdded(
BMXGroup group,
ListOfLongLong members
)
Add to blacklist
Parameters:
- group Group with blacklist added
- members List of blacklisted members
Example:
public void onBlockListAdded(BMXGroup group, ListOfLongLong members) {
super.onBlockListAdded(group, members);
// toastListener("onBlockListAdded");
}
function onBlockListRemoved
inline void onBlockListRemoved(
BMXGroup group,
ListOfLongLong members
)
Delete blacklist
Parameters:
- group Group with blacklist removed
- members List of unblacklisted members
Example:
public void onBlockListRemoved(BMXGroup group, ListOfLongLong members) {
super.onBlockListRemoved(group, members);
// toastListener("onBlockListRemoved");
}
function onGroupListUpdate
inline void onGroupListUpdate()
Triggered when client pulls a new group from server, used to update user group list, and call local fetching group via SDK for all member information
Example:
public void onGroupListUpdate(BMXGroupList list) {
super.onGroupListUpdate(list);
// toastListener("onGroupListUpdate");
}
function BMXGroupServiceListener
inline BMXGroupServiceListener()
Example:
function registerGroupService
inline void registerGroupService(
BMXGroupService service
)
Protected Functions Documentation
Example:
function BMXGroupServiceListener
inline BMXGroupServiceListener(
long cPtr,
boolean cMemoryOwn
)
Example:
function finalize
inline void finalize()
Example:
function swigDirectorDisconnect
inline void swigDirectorDisconnect()
Example:
function getCPtr
static inline long getCPtr(
BMXGroupServiceListener obj
)
Protected Attributes Documentation
variable swigCMemOwn
transient boolean swigCMemOwn;
Example:
Updated on 2022-01-26 at 17:18:31 +0800