CommunitiesSettings

@objcMembers
@objc(GetSocialCommunitiesSettings)
public class CommunitiesSettings : NSObject

Describe community settings.

  • Properties.

    Declaration

    Swift

    public internal(set) var properties: [String : String] { get }
  • Permissions.

    Declaration

    Swift

    public internal(set) var permissions: [CommunitiesAction : Role] { get }
  • Is discoverable.

    Declaration

    Swift

    public internal(set) var isDiscovarable: Bool { get }
  • Is private.

    Declaration

    Swift

    public internal(set) var isPrivate: Bool { get }
  • Declaration

    Swift

    public internal(set) var labels: [String] { get }
  • Check if specified action is available or not.

    Declaration

    Swift

    public func isActionAllowed(action: CommunitiesAction) -> Bool

    Return Value

    true, if action is available, otherwise false.

  • Check which role allowed to perform the specified action.

    Declaration

    Swift

    @objc(permissionRoleForAction:)
    public func permissionRole(for action: CommunitiesAction) -> Role

    Parameters

    action

    The action to check.

    Return Value

    Role instance. If action not found, it will return Role.admin.

  • Description.

    Declaration

    Swift

    public override var description: String { get }