- useCacheFile(uri: null | string, manager: string, __namedParameters?: {
delay: number;
}): {
cancelAsync: (() => Promise<void>);
downloadAsync: ((props?: CacheEntryDownloadOptions) => Promise<string>);
error: any;
path: null | string;
pauseAsync: (() => Promise<DownloadPauseState>);
progress: number;
ready: boolean;
resetAsync: (() => Promise<void>);
resumeAsync: (() => Promise<string>);
status: CacheEntryStatus;
}
-
Parameters
-
uri: null | string
-
manager: string
-
__namedParameters: {
delay: number;
} = ...
Returns {
cancelAsync: (() => Promise<void>);
downloadAsync: ((props?: CacheEntryDownloadOptions) => Promise<string>);
error: any;
path: null | string;
pauseAsync: (() => Promise<DownloadPauseState>);
progress: number;
ready: boolean;
resetAsync: (() => Promise<void>);
resumeAsync: (() => Promise<string>);
status: CacheEntryStatus;
}
-
cancelAsync: (() => Promise<void>)
-
- (): Promise<void>
-
Returns Promise<void>
-
-
error: any
-
path: null | string
-
pauseAsync: (() => Promise<DownloadPauseState>)
-
- (): Promise<DownloadPauseState>
-
Returns Promise<DownloadPauseState>
-
progress: number
-
ready: boolean
-
resetAsync: (() => Promise<void>)
-
- (): Promise<void>
-
Returns Promise<void>
-
resumeAsync: (() => Promise<string>)
-
- (): Promise<string>
-
Returns Promise<string>
-