# GroupRx

class GroupRx

Reactive API of Group.

This class replicates some of the methods included in Group but using Rx types as return values instead of callbacks.

## Functions

add
Link copied to clipboard
fun add(participant: Contact): Completable

Adds a new participant to this group. Note: The user needs to be the group's owner.

changeRingingStrategy
Link copied to clipboard
fun changeRingingStrategy(strategy: RingingStrategy): Completable

Update ringing strategy for this group.

hasParticipant
Link copied to clipboard
fun hasParticipant(participant: Contact): Single<Boolean>

Checks if a participant belongs to this group.

leave
Link copied to clipboard
fun leave(): Completable

Leaves this group.

remove
Link copied to clipboard
fun remove(participant: Contact): Completable

Removes a participant from this group. Note: The user needs to be the group's owner.

removeAllParticipants
Link copied to clipboard
fun removeAllParticipants(): Completable

Removes all participants from this group. Note: The user needs to be the group's owner.

reorderParticipants
Link copied to clipboard
fun reorderParticipants(participants: List<Contact>): Completable

Reorder the participant list for this group.

update
Link copied to clipboard
fun update(name: String): Completable

Updates the group name. Note: The user needs to be the group's owner.