Methods Summary |
---|
public synchronized void | addMemberAsync(Contact contact)Adds a member to this group.
TODO: more docs on async callbacks.
mManager.addGroupMemberAsync(this, contact);
|
public void | addMemberListener(GroupMemberListener listener)
mMemberListeners.add(listener);
|
public Address | getAddress()
return mAddress;
|
public java.util.List | getMembers()Gets an unmodifiable collection of the members of the group.
return Collections.unmodifiableList(mMembers);
|
public java.lang.String | getName()Gets the name of the group.
return mName;
|
void | notifyGroupMemberError(ImErrorInfo error)Notifies that previous operation on this group has failed.
for(GroupMemberListener listener : mMemberListeners) {
listener.onError(this, error);
}
|
void | notifyMemberJoined(Contact contact)Notifies that a contact has joined into this group.
mMembers.add(contact);
for(GroupMemberListener listener : mMemberListeners) {
listener.onMemberJoined(this, contact);
}
|
void | notifyMemberLeft(Contact contact)Notifies that a contact has left this group.
if(mMembers.remove(contact)) {
for(GroupMemberListener listener : mMemberListeners) {
listener.onMemberLeft(this, contact);
}
}
|
public synchronized void | removeMemberAsync(Contact contact)Removes a member from this group.
TODO: more docs on async callbacks.
mManager.removeGroupMemberAsync(this, contact);
|
public void | removeMemberListener(GroupMemberListener listener)
mMemberListeners.remove(listener);
|