You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var songEntity = widget.singleTrack!.getMap.toFavoritesEntity(); bool checkInResult = await audioRoom.checkIn(RoomType.FAVORITES, songEntity.key); if (checkInResult == false) { audioRoom.addTo(RoomType.FAVORITES, songEntity); }
//single track is the songModel
this is the code , in documentation it is written that
(The return will be [true] if song has already been added or [false] if not.)
but then also it gives false and add the the again to favorite list
i tried many times , did not get answer.
Android version 11 .
The text was updated successfully, but these errors were encountered:
Hey @Su-desh. The version 2.2.0 added the ignoreDuplicate parameter to addTo methods. You don't need to use the checkIn. If setted to false, the song will only be added one time.
var songEntity = widget.singleTrack!.getMap.toFavoritesEntity(); bool checkInResult = await audioRoom.checkIn(RoomType.FAVORITES, songEntity.key); if (checkInResult == false) { audioRoom.addTo(RoomType.FAVORITES, songEntity); }
//single track is the songModel
this is the code , in documentation it is written that
(The return will be [true] if song has already been added or [false] if not.)
but then also it gives false and add the the again to favorite list
i tried many times , did not get answer.
Android version 11 .
The text was updated successfully, but these errors were encountered: