XGalleryBackend class abstract
Backend contract that XGallery dispatches into. The default
implementation calls into native code via the ux/gallery method
channel; tests substitute their own (see
ux/lib/testing.dart's FakeXGalleryBackend).
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
libraryChanges
→ Stream<
void> -
Emits whenever the underlying photo library reports a change —
limited-subset edits via
presentLimitedLibraryPicker, external edits from Photos.app, or permission flips from Settings. Subscribers should re-fetch any cached album / asset listings on each event.no setter - 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.
-
assets(
{String? albumId, XAssetKind? filter, required int start, required int end}) → Future< List< XAsset> > -
A page of assets, newest first.
startinclusive,endexclusive. -
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.
-
permission(
) → Future< XGalleryPermission> - The library's current authorisation state, without prompting.
-
presentLimitedLibraryPicker(
) → Future< void> - Open the system sheet for adjusting a limited selection.
-
requestPermission(
) → Future< XGalleryPermission> - Prompt for library access and report the resulting state.
-
resolveFile(
String assetId) → Future< File> - A readable file for the asset, copying it out of the library where the platform requires it.
-
saveToLibrary(
String path, {required XAssetKind kind, String? mimeType}) → Future< XGallerySaveStatus> -
Add the file at
pathto the library askind. -
thumbnail(
String assetId, {required int sizePx}) → Future< XAssetThumbnail> -
A thumbnail of the asset, no larger than
sizePxon its long edge. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited