MethodChannelMediaGetter class
Implementation of MediaGetterPlatform using method channels to communicate with native Android.
- Inheritance
-
- Object
- PlatformInterface
- MediaGetterPlatform
- MethodChannelMediaGetter
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
deleteFile(
{required String filePath}) → Future< bool> -
Deletes a file using its path via the native platform.
override
-
getAllAudios(
{DateTime? fromDate, int? limit, bool orderByDesc = true, bool sortBySize = false, bool sortByName = false, String? keyword}) → Future< List< AudioModel> > -
Fetches all audios from the device with optional filters.
override
-
getAllDocuments(
{DateTime? fromDate, int? limit, bool orderByDesc = true, bool sortBySize = false, bool sortByName = false, String? keyword}) → Future< List< FileModel> > -
Fetches documents (defined extensions) from the device.
override
-
getAllFiles(
{DateTime? fromDate, int? limit, bool orderByDesc = true, bool sortBySize = false, bool sortByName = false, List< String> fileExtensions = const ['pdf', 'txt', 'zip'], String? keyword}) → Future<List< FileModel> > -
Fetches all files with specified extensions from the device.
override
-
getAllImages(
{DateTime? fromDate, int? limit, bool orderByDesc = true, bool sortBySize = false, bool sortByName = false, String? keyword}) → Future< List< ImageModel> > -
Fetches all images from the device with optional filters.
override
-
getAllVideos(
{DateTime? fromDate, int? limit, bool orderByDesc = true, bool sortBySize = false, bool sortByName = false, String? keyword}) → Future< List< VideoModel> > -
Fetches all videos from the device with optional filters.
override
-
getDCIM(
{DateTime? fromDate, int? limit, bool orderByDesc = true, bool sortBySize = false, bool sortByName = false, String? keyword}) → Future< List> -
Fetches media from DCIM folder.
override
-
getDownloadFolderItems(
{DateTime? fromDate, int? limit, bool orderByDesc = true, bool sortBySize = false, bool sortByName = false, String? keyword}) → Future< List< FileModel> > -
Fetches files from the Download folder with optional filters.
override
-
getPlatformVersion(
) → Future< String?> -
Gets the platform version (e.g., Android version).
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
showToast(
String message, {ToastLength length = ToastLength.short}) → Future< void> -
Shows a native Android toast with the specified message and duration.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited