MethodChannelGalleryBackend class
Default XGalleryBackend — dispatches to native code via the
ux/gallery method channel. Public so test code can reinstall it
after swapping to a fake.
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
libraryChanges
→ Stream<
void> -
Lazy broadcast view of
ux/gallery/changes. The native side only holds a single sink; a broadcast Stream lets multiple Dart listeners (e.g. picker + selected-strip) subscribe independently.latefinal - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
albums(
{XAssetKind? filter}) → Future< List< XAlbum> > -
The user's albums, optionally restricted to one asset kind.
override
-
assets(
{String? albumId, XAssetKind? filter, required int start, required int end}) → Future< List< XAsset> > -
A page of assets, newest first.
startinclusive,endexclusive.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openSettings(
) → Future< void> -
Deep-link into the system settings page for this app.
override
-
permission(
) → Future< XGalleryPermission> -
The library's current authorisation state, without prompting.
override
-
presentLimitedLibraryPicker(
) → Future< void> -
Open the system sheet for adjusting a limited selection.
override
-
requestPermission(
) → Future< XGalleryPermission> -
Prompt for library access and report the resulting state.
override
-
resolveFile(
String assetId) → Future< File> -
A readable file for the asset, copying it out of the library where
the platform requires it.
override
-
saveToLibrary(
String path, {required XAssetKind kind, String? mimeType}) → Future< XGallerySaveStatus> -
Add the file at
pathto the library askind.override -
thumbnail(
String assetId, {required int sizePx}) → Future< XAssetThumbnail> -
A thumbnail of the asset, no larger than
sizePxon its long edge.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited