Skip to main content

TdxCloudStorage.TItemDownloadedEvent Type

The nested procedural type of the file download success notification event.

Declaration

TItemDownloadedEvent = procedure(Sender: TObject; const AItem: TdxCloudStorageItem; AStream: TStream) of object;

Parameters

Name Type Description
Sender TObject

The cloud storage component that downloaded a file.

AItem TdxCloudStorageItem

The resource metadata container that corresponds to a file downloaded from the connected server.

AStream TStream

A stream that stores the downloaded file’s content.

Remarks

The Sender parameter provides access to the cloud storage component that raised the file download success notification event. To access the cloud storage component’s class members within a TItemDownloadedEvent event handler, cast the parameter value to the TdxCloudStorage class.

The AItem parameter returns the cloud file metadata container that corresponds to the file successfully downloaded from the connected online storage service’s server. Cast the AItem parameter value to the TdxCloudStorageFile class to access all class-specific members that file metadata containers have.

The AStream parameter provides access to the data stream with the downloaded file’s content. Use this parameter to save the downloaded content to a local file or open it in a control that supports the target data format.

The OnItemDownloaded event references the TItemDownloadedEvent nested procedural type.

See Also