create Favorite With Position
abstract fun createFavoriteWithPosition(peerId: String?, type: PeerType?, position: Int, listener: RainbowListener<IRainbowFavorite, CreateFavoriteError>?)
Content copied to clipboard
Creates a favorite and insert it at the requested position. All others favorites will be automatically shifted.
Parameters
peerId
String peerId to associated with the favorite, can be a contactId or a roomId
type
PeerType Type of the favorite, can be "user", "bot" or "room"
position
int Position where to insert the created favorite
listener
RainbowListener<IRainbowFavorite, CreateFavoriteError> callback (onSuccess, onError)