Table of Contents

TTMSFNCCloudGoogleDrive Class

Drop-in component for accessing a cloud drive: list, search, upload, download, export, delete, move, rename and manage folders and account information, with both synchronous and promise-based variants.

API unit family: TMSFNCCloudGoogleDrive Inherits from: TTMSFNCCustomCloudGoogleDrive

Syntax

TTMSFNCCloudGoogleDrive = class(TTMSFNCCustomCloudGoogleDrive)

Remarks

Configure authentication through the inherited authentication settings before calling any operation.

Properties

Name Description
GDrive Provides access to the cached collection of drive items. (inherited from TTMSFNCCustomCloudGoogleDrive)
Info Account information for the connected drive, including storage usage. (inherited from TTMSFNCCustomCloudGoogleDrive)
Language Preferred language used by the service for localized responses. (inherited from TTMSFNCCustomCloudGoogleDrive)
PromiseFileInfo Item describing the file whose metadata was retrieved by the most recent promise-based request. (inherited from TTMSFNCCustomCloudGoogleDrive)

Methods

Name Description
CreateFolder Creates a new folder. (inherited from TTMSFNCCustomCloudGoogleDrive)
CreateFolderPromise Promise-based variant of CreateFolder. (inherited from TTMSFNCCustomCloudGoogleDrive)
Delete Deletes an item. (inherited from TTMSFNCCustomCloudGoogleDrive)
Download Downloads an item to a local file. (inherited from TTMSFNCCustomCloudGoogleDrive)
ExportFile Exports a document-format item to a local file using a spreadsheet target format. (inherited from TTMSFNCCustomCloudGoogleDrive)
MoveFile Moves an item into a target folder. (inherited from TTMSFNCCustomCloudGoogleDrive)
MoveFileToRoot Moves an item to the account root. (inherited from TTMSFNCCustomCloudGoogleDrive)
RenameFile Renames an item. (inherited from TTMSFNCCustomCloudGoogleDrive)
Search Searches a folder for items matching a query and reports the result through the search-complete event. (inherited from TTMSFNCCustomCloudGoogleDrive)
SearchFile Searches the account for files matching a name and returns the matched items. (inherited from TTMSFNCCustomCloudGoogleDrive)
SearchFilePromise Promise-based variant of SearchFile. (inherited from TTMSFNCCustomCloudGoogleDrive)
SearchFolder Searches the account for folders matching a name and returns the matched items. (inherited from TTMSFNCCustomCloudGoogleDrive)
SearchFolderPromise Promise-based variant of SearchFolder. (inherited from TTMSFNCCustomCloudGoogleDrive)
SearchList Searches for items matching a query and returns the result list. (inherited from TTMSFNCCustomCloudGoogleDrive)
SearchListPromise Promise-based variant of SearchList. (inherited from TTMSFNCCustomCloudGoogleDrive)
SearchPromise Promise-based variant of Search. (inherited from TTMSFNCCustomCloudGoogleDrive)
Upload Uploads a local file into a folder. (inherited from TTMSFNCCustomCloudGoogleDrive)

Events

Name Description
OnCreateFolder Occurs when a folder has been created. (inherited from TTMSFNCCustomCloudGoogleDrive)
OnDeleteItem Occurs when a delete operation has finished. (inherited from TTMSFNCCustomCloudGoogleDrive)
OnDownloadFile Occurs when a download has finished. (inherited from TTMSFNCCustomCloudGoogleDrive)
OnGetCurrentAccount Occurs when the current account information has been retrieved. (inherited from TTMSFNCCustomCloudGoogleDrive)
OnGetFileInfo Occurs when metadata for a single file has been retrieved. (inherited from TTMSFNCCustomCloudGoogleDrive)
OnGetFolderInfo Occurs when a folder-info request has finished. (inherited from TTMSFNCCustomCloudGoogleDrive)
OnGetFolderInfoComplete Occurs when a recursive folder-info request has retrieved all sub-folders. (inherited from TTMSFNCCustomCloudGoogleDrive)
OnGetFolderList Occurs when a folder listing returns its first page of items. (inherited from TTMSFNCCustomCloudGoogleDrive)
OnGetFolderListComplete Occurs when a folder listing has retrieved all items across all pages. (inherited from TTMSFNCCustomCloudGoogleDrive)
OnGetSpaceUsage Occurs when account storage usage has been retrieved. (inherited from TTMSFNCCustomCloudGoogleDrive)
OnMoveFile Occurs when a file or folder has been moved. (inherited from TTMSFNCCustomCloudGoogleDrive)
OnRenameFile Occurs when a file or folder has been renamed. (inherited from TTMSFNCCustomCloudGoogleDrive)
OnSearch Occurs when a search request completes, exposing the matched items. (inherited from TTMSFNCCustomCloudGoogleDrive)
OnUploadFile Occurs when an upload has finished. (inherited from TTMSFNCCustomCloudGoogleDrive)

Used by