MethodChannelOnAudioQuery class

An implementation of OnAudioQueryPlatform that uses method channels.

Inheritance

Constructors

MethodChannelOnAudioQuery()

Properties

channel → MethodChannel
The MethodChannel that is being used by this implementation of the plugin.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addToPlaylist(int playlistId, int audioId) → Future<bool>
Used to add a specific song/audio to a specific Playlist.
override
clearCachedArtworks() → Future<bool>
Native query
override
createPlaylist(String name, {String? author, String? desc}) → Future<int?>
Used to create a Playlist.
override
moveItemTo(int playlistId, int from, int to) → Future<bool>
Used to change song/audio position from a specific Playlist.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
observeAlbums({MediaFilter? filter}) → Stream<List<AlbumModel>>
Used to observer(listen) the albums.
override
observeArtists({MediaFilter? filter}) → Stream<List<ArtistModel>>
Used to observer(listen) the artists.
override
observeAudios({MediaFilter? filter, bool? isAsset}) → Stream<List<AudioModel>>
Used to observer(listen) the songs.
override
observeGenres({MediaFilter? filter}) → Stream<List<GenreModel>>
Used to observer(listen) the genres.
override
observePlaylists({MediaFilter? filter}) → Stream<List<PlaylistModel>>
Used to observer(listen) the playlists.
override
observersStatus() → Future<ObserversModel>
Used to check the observers(listeners) status.
override
permissionsRequest() → Future<bool>
Used to request Android permissions.
override
permissionsStatus() → Future<bool>
Used to check Android permissions status.
override
queryAlbums({MediaFilter? filter}) → Future<List<AlbumModel>>
Used to return Albums Info based in AlbumModel.
override
queryAllPath() → Future<List<String>>
Deprecated after 3.0.0
inherited
queryArtists({MediaFilter? filter}) → Future<List<ArtistModel>>
Used to return Artists Info based in ArtistModel.
override
queryArtwork(int id, ArtworkType type, {bool? fromAsset, bool? fromAppDir, MediaFilter? filter}) → Future<ArtworkModel?>
Used to return Songs Artwork.
override
queryAudios({MediaFilter? filter}) → Future<List<AudioModel>>
Used to return Audios Info based in AudioModel.
override
queryAudiosFrom(AudiosFromType type, Object where, {SongSortType? sortType, OrderType? orderType, bool? ignoreCase}) → Future<List<AudioModel>>
Deprecated after 3.0.0. Use one of the query methods instead
inherited
queryDeviceInfo() → Future<DeviceModel>
Used to return Device Info.
override
queryFromFolder(String path, {SongSortType? sortType, OrderType? orderType, UriType? uriType}) → Future<List<SongModel>>
Deprecated after 3.0.0. Use one of the query methods instead
inherited
queryGenres({MediaFilter? filter}) → Future<List<GenreModel>>
Used to return Genres Info based in GenreModel.
override
queryPlaylists({MediaFilter? filter}) → Future<List<PlaylistModel>>
Used to return Playlists Info based in PlaylistModel.
override
queryWithFilters(String argsVal, WithFiltersType withType, dynamic args) → Future<List>
Deprecated after 3.0.0. Use one of the query methods instead
inherited
removeFromPlaylist(int playlistId, int audioId) → Future<bool>
Used to remove a specific song/audio from a specific Playlist.
override
removePlaylist(int playlistId) → Future<bool>
Used to remove/delete a Playlist.
override
renamePlaylist(int playlistId, String newName) → Future<bool>
Used to rename a specific Playlist.
override
scanMedia(String path) → Future<bool>
Used to scan the given path.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited