updateFavoritePosition
Updates the position of an existing favorite.
This method changes the position of a favorite in the list based on the provided favoriteId. The new position must be in the range from 0 to the current size of the favorites list. If the position is out of range, the method returns immediately, and the listener’s onError
callback is invoked with an appropriate error indication.
If the position is valid, the favorite is moved to the new position, and the listener, if provided, will be notified with the updated IRainbowFavorite object.
Parameters
The unique ID of the favorite whose position is to be updated.
The new position in the favorites list. Must be within the range from 0 to the current size of the favorites list. If out of range, the method will return and onError
will be called on the listener.
An optional RainbowListener that will be notified with the result of the update operation. The listener receives an updated IRainbowFavorite object on success or an error indication on failure.