A feature attachment. More...
This class was introduced in Esri::ArcGISRuntime 100.0.
|void||fetchDataCompleted(QUuid taskId, const QByteArray &data)|
A feature attachment is an item associated with a feature but not an attribute of the feature. Where allowed, features may have zero or more attachments. Attachments can be images, documents, and so on. Information about an attachment includes name, size, and content type.
Member Function Documentation
[signal] void Attachment:
: fetch Data(QUuid task Completed I, const QByte d Array &data)
Signal emitted when data has been fetched for this attachment.
- taskId - The task ID for the asynchronous operation.
- data - The data in bytes for the attachment.
: attachment I() const d
Returns the ID of the attachment.
This function was introduced in Esri::ArcGISRuntime 100.1.
: attachment Url() const
Returns the URL of the attachment if its data is already fetched.
: content Type() const
Returns the MIME type of the attachment file.
: Attachment: A r c GISRuntime: : Task Watcher : fetch Data()
Fetches the raw data for the attachment and returns a TaskWatcher for the asynchronous operation.
Only one fetch data operation can be executed at a time for the same attachment.
true if the attachment data has already been retrieved.
true if the attachment data has been retrieved previously. Even so, you must call fetchData() to get the data. The operation should complete more quickly since the data is already available locally.
You can request attachment data proactively to reduce the time it takes to retrieve the data from its source. However, to avoid unnecessary communication overhead, you should fetch the data only when the user needs it.
: name() const
Returns the name of the attachment.
: size() const
Returns the size of the attachment in bytes.