fetchLatestItems

abstract fun fetchLatestItems(limit: Int = 10, beforeDate: Date? = null, afterDate: Date? = null, listener: RainbowListener<List<IChannelItem>, Unit>?)

Fetch latest items from all subscribed channels

When the fetch resolved, channel items are available both in listener onSuccess callback and directly in the Channel object.

Parameters

limit

Int that allow to specify the number of channel items to retrieve (default value 10)

beforeDate

Optional date to retrieve items before this date (iso 8601 format)

afterDate

Optional date to retrieve items before this date (iso 8601 format)

listener

RainbowListener, Unit> callback (onSuccess, onError)