@react-native-documents/picker
Version:
A react native interface to access documents from dropbox, google drive, iCloud...
23 lines (22 loc) • 1.3 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.releaseSecureAccess = exports.releaseLongTermAccess = void 0;
const NativeDocumentPicker_1 = require("./spec/NativeDocumentPicker");
/**
* Android only - Releases long-term access to the given URIs. There's no need to call this method on iOS - there's no iOS equivalent.
*
* See [Android documentation](https://developer.android.com/reference/android/content/ContentResolver#releasePersistableUriPermission(android.net.Uri,%20int)) for more information.
*/
const releaseLongTermAccess = async (uris) => {
return NativeDocumentPicker_1.NativeDocumentPicker.releaseLongTermAccess(uris);
};
exports.releaseLongTermAccess = releaseLongTermAccess;
/**
* iOS only - Releases (stops) secure access to the given URIs. Use with URIs obtained with Open mode or with the Directory Picker.
* See [iOS documentation](https://developer.apple.com/documentation/foundation/nsurl/1413736-stopaccessingsecurityscopedresou) for more information.
* There's no need to call this method on Android - there's no equivalent method on Android.
* */
const releaseSecureAccess = async (uris) => {
return NativeDocumentPicker_1.NativeDocumentPicker.releaseSecureAccess(uris);
};
exports.releaseSecureAccess = releaseSecureAccess;