fetchChannelsByCategory

abstract fun fetchChannelsByCategory(category: String, excludedCategories: List<String>? = null, limit: Int = 100, offset: Int = 0, listener: RainbowListener<List<Channel>, Unit>? = null)

Fetch channels by categories

You can use either categories parameter to get all channels from these category, or you can use excludedCategories parameter to get all channels not in these categories. The response is sent in the success callback as a List<Channel>.

Parameters

category

String Browse among the channels with a category (case sensitive equality)

excludedCategories

List Browse among the channels with a category not in the provided list (case sensitive equality)

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)

listener

RainbowListener, Unit> callback (onSuccess, onError)