Skip to main content
Table of Contents

TTMSFNCCloudGoogleGmail.GetMailsPromise Method

Lists the messages of the specified labels and returns a promise that resolves when all matching messages have been retrieved.

API unit family: TMSFNCCloudGoogleGmail Declaring type: TTMSFNCCloudGoogleGmail Inherited from: TTMSFNCCustomCloudGoogleGmail

Syntax

FMX.TMSFNCCloudGoogleGmail.hppPascalC++
function GetMailsPromise(Labels: string = 'INBOX'; AMaxResults: Integer = 50; GetNextPage: Boolean = True): IPromise<TVoid>;
System::DelphiInterface<IPromise__1<TVoid*> > __fastcall GetMailsPromise(System::UnicodeString Labels = L"INBOX", int AMaxResults = 0x32, bool GetNextPage = true);

Parameters

Name Description
Labels Comma-separated label names to filter on, for example "INBOX".
AMaxResults Maximum number of messages to retrieve per page.
GetNextPage When True, automatically continues retrieving subsequent pages until all matching messages are loaded.

Returns

A promise that resolves when the messages have been retrieved.