PrefetchOptions
Picks the caches image.prefetch() fills, so the Image that later shows the picture finds it there.
Verwendung
Prefetch an authenticated image.
// Prefetch an authenticated image.
import { image, type PrefetchOptions } from 'kuito';
const memoryOnly: PrefetchOptions = { cache: 'memory' };
await image.prefetch(
{ uri: 'https://example.com/avatar.png', headers: { Authorization: 'Bearer token' } },
memoryOnly,
);Typdeklaration
export interface PrefetchOptions {
/** The caches the image fills; `memory-disk` by default, as on an Image. */
cache?: PrefetchCache;
}Mitglieder 1
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
cache | PrefetchCache | Nein | The caches the image fills; memory-disk by default, as on an Image. |
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.