PlanetKitSubgroup

public class PlanetKitSubgroup : NSObject
extension PlanetKitSubgroup: PlanetKitDataSessionControllable

A class representing a subgroup in the conference.

  • The subgroup name.

    Remark

    If it’s the subgroup of the main room, subgroupName returns nil.

    Declaration

    Swift

    @objc
    public internal(set) var subgroupName: String? { get }
  • A Boolean value indicating whether the user is subscribed to this subgroup.

    Declaration

    Swift

    @objc
    public internal(set) var isSubscribed: Bool { get }
  • List of all peers subscribed to this group, except the local user. Some peer information may have an invalid state, especially on the public subgroup.

    Declaration

    Swift

    @objc
    public var peers: [PlanetKitConferencePeer] { get }
  • Gets the subgroup state if this subgroup is subscribed.

    Remark

    The public subgroup will return state as nil, if the local user is not subscribed to the subgroup.

    Declaration

    Swift

    @objc
    public internal(set) var state: PlanetKitSubgroupState? { get }
  • Gets the subgroup attribute if this subgroup is subscribed.

    Remark

    The public subgroup will return state as nil, if the local user is not subscribed to the subgroup.

    Declaration

    Swift

    @objc
    public internal(set) var attribute: PlanetKitSubgroupAttribute? { get }
  • Checks if the specified peer is subscribed.

    Declaration

    Swift

    @objc
    public func isSubscribed(peerId: PlanetKitUserId) -> Bool

    Parameters

    peerId

    The ID of the peer user to check.

    Return Value

    true if the peer is subscribed, false otherwise.

  • Retrieves the peer with the specified ID.

    Declaration

    Swift

    @objc
    public func getPeer(peerId: PlanetKitUserId) -> PlanetKitConferencePeer?

    Parameters

    peerId

    The ID of the peer to retrieve.

    Return Value

    The PlanetKitConferencePeer object representing the peer, or nil if the peer is not found.

Data Session