@react-native-documents/picker
Version:
A react native interface to access documents from dropbox, google drive, iCloud...
31 lines (28 loc) • 1.45 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.releaseSecureAccess = exports.releaseLongTermAccess = void 0;
var _NativeDocumentPicker = require("./spec/NativeDocumentPicker");
/**
* For each uri whose release was requested, the result will contain an object with the uri and a status.
* */
/**
* 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.NativeDocumentPicker.releaseLongTermAccess(uris);
};
/**
* 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.
* */
exports.releaseLongTermAccess = releaseLongTermAccess;
const releaseSecureAccess = async uris => {
return _NativeDocumentPicker.NativeDocumentPicker.releaseSecureAccess(uris);
};
exports.releaseSecureAccess = releaseSecureAccess;
//# sourceMappingURL=release.js.map