searchChannels

abstract fun searchChannels(name: String? = null, topic: String? = null, categories: List<String>? = null, excludedCategories: List<String>? = null, subscribed: Boolean? = null, limit: Int = 100, offset: Int = 0, sortField: String = "name", sortOrder: Int = 1, listener: RainbowListener<List<Channel>, Unit>? = null)

Search channels.

Parameters

name

String Search by channel names (case insensitive substring)

topic

String Search by channel topic (case insensitive substring)

categories

List Search channels with a category in the provided list (case sensitive equality)

excludedCategories

List Search channels with a category NOT in the provided list (case sensitive equality)

subscribed

Boolean Search among subscribed or non subscribed channels only

limit

Int Allow to specify the number of channels to retrieve (default value 100)

offset

Int Allow to specify the position of first channel to retrieve (default value 0)

sortField

String Sort channels based on the given field (default value name, authorized values : name, topic, users_count, subscribers_count)

sortOrder

Int Specify order ascending (1) / descending (2)

listener

RainbowListener, Unit> callback (onSuccess, onError)