@angelengineering/filepicker
Version:
File Picker plugin for Nativescript applications
19 lines (18 loc) • 660 B
TypeScript
import { File } from '@nativescript/core';
export declare class TempFile {
static getPath(prefix: string, suffix: string): string;
static deletePathLater(path: string): void;
static cleanup(): void;
}
declare type FileResolver = (value?: File | PromiseLike<File>) => void;
export declare class AssetDownloader {
readonly asset: PHAsset;
constructor(asset: PHAsset);
download(): Promise<File>;
get path(): string;
private _path;
protected getResource(): PHAssetResource;
protected fetchResource(resource: PHAssetResource, resolve: FileResolver): void;
protected exportVideo(resolve: FileResolver): void;
}
export {};