Skip to main content
Table of Contents

TTMSFNCCustomCloudGoogleDrive.SearchPromise Method

Promise-based variant of Search.

API unit family: TMSFNCCloudGoogleDrive Declaring type: TTMSFNCCustomCloudGoogleDrive

Syntax

FMX.TMSFNCCloudGoogleDrive.hppPascalC++
function SearchPromise(const AFolderID, AQuery: string; AExactMatch: Boolean; AFileExtension: string = ''; AFileNameOnly: Boolean = True): IPromise<TVoid>;
System::DelphiInterface<IPromise__1<TVoid*> > __fastcall SearchPromise(const System::UnicodeString AFolderID, const System::UnicodeString AQuery, bool AExactMatch, System::UnicodeString AFileExtension = System::UnicodeString(), bool AFileNameOnly = true);

Parameters

Name Description
AFolderID Identifier of the folder to search; pass an empty string to search from the root.
AQuery Text to match.
AExactMatch When True, requires an exact match rather than a partial one.
AFileExtension Optional file extension filter; empty matches any extension.
AFileNameOnly When True, matches only against the item name rather than its content.

Returns

A promise that resolves when the search has completed.