Utilização

Configure a thumbnail prefetch.

tsx
// Configure a thumbnail prefetch.
import { image } from 'kuito';

// A one-off picture: keep it on disk for the next launch, not in memory now.
const options: image.PrefetchOptions = { cache: 'disk' };

await image.prefetch('https://example.com/onboarding.png', options);

Declaração do tipo

ts
export interface PrefetchOptions {
  /** The caches the image fills; `memory-disk` by default, as on an Image. */
  cache?: PrefetchCache;
}

Membros 1

NomeTipoObrigatórioDescrição
cachePrefetchCacheNãoThe 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.