createPlaylist method
Used to create a Playlist
Parameters:
name
the playlist name.author
the playlist author. (IOS only)desc
the playlist description. (IOS only)
Important:
- This method create a playlist using
External Storage
, all apps will be able to see this playlist
Platforms:
Android | IOS | Web |
---|---|---|
✔️ |
✔️ |
❌ |
See more about platforms support
Implementation
@override
Future<bool> createPlaylist(
String name, {
String? author,
String? desc,
}) async {
final bool resultCreatePl = await _channel.invokeMethod(
"createPlaylist",
{
"playlistName": name,
"playlistAuthor": author,
"playlistDesc": desc,
},
);
return resultCreatePl;
}