PublicGroupChannelListQuery

@objc(SBDPublicGroupChannelListQuery)
public class PublicGroupChannelListQuery : NSObject, Queryable

The PublicGroupChannelListQuery class is a query class for getting the list of public group channels.

The instance of this class is created by createPublicGroupChannelListQuery() in GroupChannel class.

  • indicates there are more data to fetch

    Declaration

    Swift

    @objc
    public internal(set) var hasNext: Bool { get }
  • Indicates the query is currently loading or not

    Declaration

    Swift

    @objc
    public internal(set) var isLoading: Bool { get }
  • Fetches next page

    Declaration

    Swift

    @objc
    public func loadNextPage(completionHandler: @escaping GroupChannelListHandler)

    Parameters

    completionHandler

    completion handler

  • Copies this object

    Declaration

    Swift

    public func copy(with zone: NSZone? = nil) -> Any

    Parameters

    zone

    optional NSZone

    Return Value

    PublicGroupChannelListQuery instance

Params Bridge

  • Determines channel list includes empty channel. Deafult is true

    Declaration

    Swift

    @objc
    public var includeEmptyChannel: Bool { get }
  • Determines channel list includes frozen channel. Default is true

    Since

    3.0.182

    Declaration

    Swift

    @objc
    public var includeFrozenChannel: Bool { get }
  • Determines channel list includes their members. Default is true

    Declaration

    Swift

    @objc
    public var includeMemberList: Bool { get }
  • Determines channel object of the list includes meta data property. Default is true

    Since

    3.0.216

    Declaration

    Swift

    @objc
    public var includeMetaData: Bool { get }
  • Sets the order of the list. The order is defined in PublicGroupChannelListOrder. Default is .chronological

    Declaration

    Swift

    @objc
    public var order: PublicGroupChannelListOrder { get }
  • Sets to filter super channel. Default is .all

    Declaration

    Swift

    @objc
    public var superChannelFilter: GroupChannelSuperChannelFilter { get }
  • Sets GroupChannel URLs filter.

    GroupChannel list containing only and exactly the passed GroupChannel URLs will be returned.

    Note

    This does not cooperate with other filters.

    Declaration

    Swift

    @objc
    public var publicMembershipFilter: PublicGroupChannelMembershipFilter { get }
  • Sets the custom types filter.

    Declaration

    Swift

    @objc
    public var customTypesFilter: [String]? { get }
  • Sets to filter channels by custom type that starts with.

    Declaration

    Swift

    @objc
    public var customTypeStartsWithFilter: String? { get }
  • Sets GroupChannel URLs filter.

    GroupChannel list containing only and exactly the passed GroupChannel URLs will be returned.

    Note

    This does not cooperate with other filters.

    Declaration

    Swift

    @objc
    public var channelURLsFilter: [String]? { get }
  • Sets GroupChannel names filter.

    GroupChannel list containing only and exactly the passed GroupChannel name will be returned.

    Note

    This does not cooperate with other filters.

    Declaration

    Swift

    @objc
    public var channelNameContainsFilter: String? { get }
  • Sets a key for ordering by value in the metadata.

    This is valid when the order is .channelMetaDataValueAlphabetical only.

    Since

    3.0.118

    Declaration

    Swift

    @objc
    public var metaDataOrderKeyFilter: String? { get }
  • Searches for group channels with metadata containing an item with the specified value as its key

    Since

    3.0.232

    Declaration

    Swift

    @objc
    public var metaDataKeyFilter: String? { get }
  • Searches for group channels with metadata containing an item with the key specified by the metaDataKey

    Since

    3.0.232

    Declaration

    Swift

    @objc
    public var metaDataValuesFilter: [String]? { get }
  • Searches for group channels with metadata containing an item with the key specified by the metaDataKey and the values of that item start with the specified value

    Since

    3.0.232

    Declaration

    Swift

    @objc
    public var metaDataValueStartsWithFilter: String? { get }
  • Specifies the number of results to return per call. (Default: 20)

    Declaration

    Swift

    @objc
    public var limit: UInt { get }
  • Searches for public group channels created before the specified value. (milliseconds)

    Since

    4.11.0

    Declaration

    Swift

    @objc
    public var createdBefore: Int64 { get }
  • Searches for public group channels created after the specified value. (milliseconds)

    Since

    4.11.0

    Declaration

    Swift

    @objc
    public var createdAfter: Int64 { get }