Skip to content

DeviceResolveOptions — @gj-kit/expo-media

A public type from @gj-kit/expo-media/core. The signature below is taken directly from the 0.6.1 release declaration.

import { DeviceResolveOptions } from '@gj-kit/expo-media/core';
/**
* 기기 자산 해석 옵션(§5.4-④).
*
* ⚠ `downloadFromICloud` 기본 false — 전신 주석(devicePhotoLibrary.ts:48-50) 그대로다:
* "사용자가 직접 시작한 수동 업로드만 iCloud 전용 원본 가져오기에 옵트인할 수 있다.
* 백그라운드 동기화는 예기치 않은 셀룰러 전송을 절대 시작하지 않도록 기본값 false를 유지한다."
*/
type DeviceResolveOptions = {
readonly downloadFromICloud?: boolean | undefined;
readonly onICloudDownload?: ((downloading: boolean) => void) | undefined;
readonly extraCandidates?: readonly (string | null | undefined)[] | undefined;
readonly infoTimeoutMs?: number | undefined;
readonly downloadTimeoutMs?: number | undefined;
};

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/expo-media
  • Version: 0.6.1
  • Public entry: ./core
  • Source: GitHub