Skip to content

MediaLibrarySaveAdapter — @gj-kit/expo-media

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

import { MediaLibrarySaveAdapter } from '@gj-kit/expo-media';
interface MediaLibrarySaveAdapter {
requestWritePermission(): Promise<MediaPermission>;
saveToLibrary(uri: string): Promise<void>;
/**
* Android Expo Go는 사진 권한 요청 자체가 불가 — 그 판정을 어댑터가 정적으로 노출한다
* (전신 saveImages.ts:96). `expo-constants` 의존을 라이브러리에서 완전히 제거하는 지점(§0.2):
* `Constants.appOwnership === 'expo'` 판정은 호스트가 하고 값만 넘긴다.
*/
readonly skipPermissionRequest: boolean;
}

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: .
  • Source: GitHub