Favorites

interface Favorites

This module is used to manage favorites.

Functions

createFavorite
Link copied to clipboard
abstract fun createFavorite(peerId: String?, type: PeerType?, listener: RainbowListener<IRainbowFavorite, CreateFavoriteError>?)
Creates a favorite at the end of the list.
createFavoriteWithPosition
Link copied to clipboard
abstract fun createFavoriteWithPosition(peerId: String?, type: PeerType?, position: Int, listener: RainbowListener<IRainbowFavorite, CreateFavoriteError>?)
Creates a favorite and insert it at the requested position.
deleteFavorite
Link copied to clipboard
abstract fun deleteFavorite(favorite: IRainbowFavorite, listener: RainbowListener<Unit, Unit>?)
Deletes a favorite.
getFavorite
Link copied to clipboard
abstract fun getFavorite(favoriteId: String?): IRainbowFavorite?
Get a favorite from its id.
getFavoriteByPeerId
Link copied to clipboard
abstract fun getFavoriteByPeerId(peerId: String?): IRainbowFavorite?
Get a favorite by the peerId.
updateFavoritePosition
Link copied to clipboard
abstract fun updateFavoritePosition(favoriteId: String, position: Int, listener: RainbowListener<IRainbowFavorite, Unit>)
Updates the favorite's position

Properties

favorites
Link copied to clipboard
abstract val favorites: ArrayItemList<IRainbowFavorite>
Get all favorites.