addToPlaylist method
Used to add a specific song/audio to a specific Playlist
Parameters:
playlistId
is used to check if Playlist exist.audioId
is used to add specific audio to Playlist.
Platforms:
Android | IOS | Web |
---|---|---|
✔️ |
✔️ |
❌ |
See more about platforms support
Implementation
@override
Future<bool> addToPlaylist(int playlistId, int audioId) async {
final bool resultAddToPl = await _channel.invokeMethod(
"addToPlaylist",
{
"playlistId": playlistId,
"audioId": audioId,
},
);
return resultAddToPl;
}