GroupContent

@objc(GetSocialGroupContent)
@objcMembers
public final class GroupContent : NSObject

Describe group content object.

  • id

    Group id

    Declaration

    Swift

    public internal(set) var id: String { get }
  • Group title

    Declaration

    Swift

    public var title: String?
  • Group description

    Declaration

    Swift

    public var groupDescription: String?
  • Group icon

    Declaration

    Swift

    public var avatar: MediaAttachment?
  • Group permissions

    Declaration

    Swift

    public var permissions: [CommunitiesAction : Role]
  • Custom properties

    Declaration

    Swift

    public var properties: [String : String]
  • Defines if group is visible for everyone or not

    Declaration

    Swift

    public var isDiscoverable: Bool
  • Defines if users can join without approval or not

    Declaration

    Swift

    public var isPrivate: Bool
  • Declaration

    Swift

    public var labels: [String]
  • Create a new group content to create a group.

    Declaration

    Swift

    public init(groupId: String)

    Parameters

    groupId

    Group id.

  • Set permission.

    Declaration

    Swift

    @objc(setPermissionRole:forAction:)
    public func setPermission(role: Role, action: CommunitiesAction)

    Parameters

    action

    CommunitiesAction

    role

    Role