OnAudioQuery class Null safety

Interface and Main method for use on_audio_query

Constructors

OnAudioQuery()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addToPlaylist(int playlistId, int audioId) Future<bool>
Used to add a specific song/audio to a specific Playlist [...]
createPlaylist(String name, {String? author, String? desc}) Future<bool>
Used to create a Playlist [...]
moveItemTo(int playlistId, int from, int to) Future<bool>
Used to change song/audio position from a specific Playlist [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
permissionsRequest() Future<bool>
Used to request Android permissions. [...]
permissionsStatus() Future<bool>
Used to check Android permissions status [...]
queryAlbums({AlbumSortType? sortType, OrderType? orderType, UriType? uriType}) Future<List<AlbumModel>>
Used to return Albums Info based in AlbumModel. [...]
queryAllPath() Future<List<String>>
Used to return Songs path. [...]
queryArtists({ArtistSortType? sortType, OrderType? orderType, UriType? uriType}) Future<List<ArtistModel>>
Used to return Artists Info based in ArtistModel. [...]
queryArtwork(int id, ArtworkType type, {ArtworkFormat? format, int? size}) Future<Uint8List?>
Used to return Songs Artwork. [...]
queryArtworks(int id, ArtworkType type, {ArtworkFormat? format, int? size}) Future<Uint8List?>
Deprecated after 2.0.0.
@Deprecated("Use [queryArtwork] instead")
queryAudios([SongSortType? sortType, OrderType? orderType, UriType? uriType, String? path]) Future<List<SongModel>>
Deprecated after 2.0.0.
@Deprecated("Use [querySongs] instead")
queryAudiosFrom(AudiosFromType type, Object where) Future<List<SongModel>>
Used to return Songs/Audios Info from a specific queryType based in SongModel. [...]
queryAudiosOnly(AudiosOnlyType isOnly, {SongSortType? sortType, OrderType? orderType}) Future<List<SongModel>>
Deprecated after 2.0.0.
@Deprecated("This method will be removed soon")
queryDeviceInfo() Future<DeviceModel>
Used to return Device Info [...]
queryFromFolder(String path, {SongSortType? sortType, OrderType? orderType, UriType? uriType}) Future<List<SongModel>>
Used to return Songs Info from a specific Folder based in SongModel. [...]
queryGenres({GenreSortType? sortType, OrderType? orderType, UriType? uriType}) Future<List<GenreModel>>
Used to return Genres Info based in GenreModel. [...]
queryPlaylists({PlaylistSortType? sortType, OrderType? orderType, UriType? uriType}) Future<List<PlaylistModel>>
Used to return Playlists Info based in PlaylistModel. [...]
querySongs({SongSortType? sortType, OrderType? orderType, UriType? uriType}) Future<List<SongModel>>
Used to return Songs Info based in SongModel. [...]
querySongsBy(SongsByType songsByType, List<Object> values, {UriType? uriType}) Future<List<SongModel>>
Deprecated after 2.0.0.
@Deprecated("This method will be removed soon")
queryWithFilters(String argsVal, WithFiltersType withType, dynamic args) Future<List>
Used to return Songs Info based in Something. Works like a "Search". [...]
removeFromPlaylist(int playlistId, int audioId) Future<bool>
Used to remove a specific song/audio from a specific Playlist [...]
removePlaylist(int playlistId) Future<bool>
Used to remove/delete a Playlist [...]
renamePlaylist(int playlistId, String newName) Future<bool>
Used to rename a specific Playlist [...]
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Properties

platform OnAudioQueryPlatform
The platform interface that drives this plugin
read-only