Verwendung

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);

Typdeklaration

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

Mitglieder 1

NameTypErforderlichBeschreibung
cachePrefetchCacheNeinThe 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.