@react-native-documents/picker
Version:
A react native interface to access documents from dropbox, google drive, iCloud...
24 lines • 1.21 kB
TypeScript
/**
* For each uri whose release was requested, the result contains an object with the uri and a status.
* */
export type ReleaseLongTermAccessResult = Array<{
uri: string;
status: 'success';
} | {
uri: string;
status: 'error';
errorMessage: string;
}>;
/**
* 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.
*/
export declare const releaseLongTermAccess: (uris: string[]) => Promise<ReleaseLongTermAccessResult>;
/**
* 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.
* */
export declare const releaseSecureAccess: (uris: string[]) => Promise<null>;
//# sourceMappingURL=release.d.ts.map