TdxCloudStorageGoogleDriveProvider Class
An online file provider that can work with the Google Drive file storage service.
Declaration
TdxCloudStorageGoogleDriveProvider = class(
TdxCloudStorageOAuth2Provider
)
Remarks
This class implements the file data access and synchronization functionality via Google APIs. To authenticate and authorize the file data provider in an online account, you need to associate the provider with a properly configured Google API-compatible authorization agent component by assigning it to the AuthorizationAgent property.
The TdxCloudStorageGoogleDriveProvider class provides the following members that allow you to:
Obtain a descriptive name that corresponds to the target cloud storage service (GetDisplayName);
Identify the filename extension corresponding to the specified online resource’s metadata container (GetExtension);
Associate the data provider with a compatible authorization agent component (AuthorizationAgent);
Adjust the maximum number of files in the “Recent” special folder (RecentFileCountLimit);
Specify the time limit at which the stored files are considered “recent” (RecentDayCountLimit);
Access the pre-populated dictionary that determines actual file formats in which the data provider requests Google Documents from the connected online storage (DefaultMIMETypeExportTypeDictionary);
Access the pre-populated dictionaries that determine how the data provider converts Google Document MIME types to the corresponding filename extensions and vice versa (DefaultMIMETypeToExtensionDictionary and DefaultExtensionToMIMETypeDictionary).
To create a Google Drive file data provider for the cloud storage component, assign the TdxCloudStorageGoogleDriveProvider class name to its ProviderClassName property. The newly created data provider is accessible via the component’s Provider property as a TdxCloudStorageProvider object.
Note
A Google Drive file data provider can access the content of the “Recent”, “Shared with me”, “Starred”, and “Trash” special folders.