Skip to content

createLocalMediaSaver — @gj-kit/expo-media

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

import { createLocalMediaSaver } from '@gj-kit/expo-media';
/**
* Create a saver for files that are already owned by the application.
*
* Unlike the remote `createMediaSaver`, this never downloads or deletes source
* files. It asks the OS for write permission at most once per non-empty batch,
* and only after confirming that at least one non-empty `file://` source is
* available.
*/
declare function createLocalMediaSaver(input: {
readonly files: LocalMediaSaveFileAdapter;
readonly library: MediaLibrarySaveAdapter;
readonly strings?: MediaStrings | undefined;
readonly telemetry?: MediaTelemetry | undefined;
}): LocalMediaSaver;

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