mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-04 03:27:09 -05:00 
			
		
		
		
	* improve download asset * fix: download motion photos on ios --------- Co-authored-by: dvbthien <dvbthien@gmail.com> Co-authored-by: Alex <alex.tran1502@gmail.com>
		
			
				
	
	
		
			37 lines
		
	
	
		
			719 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			719 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
import 'dart:io';
 | 
						|
import 'dart:typed_data';
 | 
						|
 | 
						|
import 'package:immich_mobile/entities/asset.entity.dart';
 | 
						|
 | 
						|
abstract interface class IFileMediaRepository {
 | 
						|
  Future<Asset?> saveImage(
 | 
						|
    Uint8List data, {
 | 
						|
    required String title,
 | 
						|
    String? relativePath,
 | 
						|
  });
 | 
						|
 | 
						|
  Future<Asset?> saveImageWithFile(
 | 
						|
    String filePath, {
 | 
						|
    String? title,
 | 
						|
    String? relativePath,
 | 
						|
  });
 | 
						|
 | 
						|
  Future<Asset?> saveVideo(
 | 
						|
    File file, {
 | 
						|
    required String title,
 | 
						|
    String? relativePath,
 | 
						|
  });
 | 
						|
 | 
						|
  Future<Asset?> saveLivePhoto({
 | 
						|
    required File image,
 | 
						|
    required File video,
 | 
						|
    required String title,
 | 
						|
  });
 | 
						|
 | 
						|
  Future<void> clearFileCache();
 | 
						|
 | 
						|
  Future<void> enableBackgroundAccess();
 | 
						|
 | 
						|
  Future<void> requestExtendedPermissions();
 | 
						|
}
 |