|
LMMS
|
#include <juce_AndroidDocument.h>
Public Member Functions | |
| URL | getUrl () const |
| int64 | getPersistedTime () const |
| bool | isReadPermission () const |
| bool | isWritePermission () const |
Static Public Member Functions | |
| static void | takePersistentReadWriteAccess (const URL &) |
| static void | releasePersistentReadWriteAccess (const URL &) |
| static std::vector< AndroidDocumentPermission > | getPersistedPermissions () |
Private Attributes | |
| URL | url |
| int64 | time = 0 |
| bool | read = false |
| bool | write = false |
Represents a permission granted to an application to read and/or write to a particular document or tree.
This class also contains static methods to request, revoke, and query the permissions of your app. These functions are no-ops on all platforms other than Android.
@tags{Core}
|
static |
Returns all of the permissions that have previously been granted to the app, via takePersistentReadWriteAccess();
|
inline |
The time when the permissions were persisted, in milliseconds since January 1, 1970 00:00:00.0 UTC.
|
inline |
The url of the document with persisted permissions.
|
inline |
True if the permission allows read access.
|
inline |
True if the permission allows write access.
Revokes persistent access to a document or tree.
Gives your app access to a particular document or tree, even after the device is rebooted.
If you want to persist access to a folder selected through a native file chooser, make sure to pass the exact URL returned by the file picker. Do NOT call AndroidDocument::fromTree and then pass the result of getUrl to this function, as the resulting URL may differ from the result of the file picker.
|
private |
|
private |
|
private |
|
private |