PrefetchOptions
Picks the caches image.prefetch() fills, so the Image that later shows the picture finds it there.
Utilização
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,
);Declaração do tipo
export interface PrefetchOptions {
/** The caches the image fills; `memory-disk` by default, as on an Image. */
cache?: PrefetchCache;
}Membros 1
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
cache | PrefetchCache | Não | The caches the image fills; memory-disk by default, as on an Image. |
Gerado a partir das declarações TypeScript públicas: assinaturas, props e predefinições vêm da fonte verificada, as descrições da sua JSDoc. Nenhuma predefinição é inventada.