Groups
public class Groups
Provides methods to retrieve all groups or by its identifier
-
Delegate to receive groups events
Declaration
Swift
public weak var delegate: GroupsDelegate?
-
Current user leaves all groups where he/she is participating
Declaration
Swift
public func leavesAllGroups(task: @escaping (SippoTask<Void, SippoResourceError>) -> ())
Parameters
task
Async task
-
Fetch all groups
Declaration
Swift
public func groups(userIsParticipating: Bool = true, task: @escaping (SippoTask<[SippoGroup], SippoResourceError>) -> ())
Parameters
userIsParticipating
Set true to fetch only groups where user is participating
task
Async result
-
Fetch a group with a specific groupId
Declaration
Swift
public func group(with groupId: String, task: @escaping (SippoTask<SippoGroup, SippoResourceError>) -> ())
Parameters
groupId
The groupId to fetch
task
Async result