A pop-up element that displays the attachments of a GeoElement in a pop-up. More...
Member Function Documentation[explicit]
AttachmentsPopupElement::AttachmentsPopupElement(Esri::ArcGISRuntime::PopupAttachmentsDisplayType displayType, QObject *parent = nullptr)
Creates a new attachments pop-up element with the given PopupAttachmentsDisplayType.
[override virtual noexcept]
AttachmentsPopupElement::~AttachmentsPopupElement()
Destructor.
[since Esri::ArcGISRuntime 200.3]
QList<Esri::ArcGISRuntime::PopupAttachment *> AttachmentsPopupElement::attachments() const
Returns a QList of the geoelement's attachments.
If attachments haven't been fetched or the PopupElement::isEvaluated value is false
, the QList is empty.
This function was introduced in Esri::ArcGISRuntime 200.3.
See also fetchAttachmentsAsync.
QString AttachmentsPopupElement::description() constReturns a string value describing the popup element in detail. The value can be an empty string.
See also setDescription().
Esri::ArcGISRuntime::PopupAttachmentsDisplayType AttachmentsPopupElement::displayType() constReturns how to display the attachments. If `list` is specified, attachments show as links.
If the value is PopupAttachmentsDisplayType::List, attachments show as links. If the value is PopupAttachmentsDisplayType::Preview, attachments expand to the width of the pop-up. A value PopupAttachmentsDisplayType::Auto allows your app to determine the most suitable default experience.
See also setDisplayType().
[since Esri::ArcGISRuntime 200.3]
QFuture<void> AttachmentsPopupElement::fetchAttachmentsAsync()
Fetches the attachments from the Feature, creates PopupAttachment objects from them, and populates attachments.
If PopupElement::isEvaluated is false
, this method will have no effect.
Attachments are not re-fetched if they have already been fetched.
This method returns a QFuture for the asynchronous operation. Use future.then() to continue processing when the operation completes. Use future.onFailed() to handle exceptions of type ErrorException.
See Working with QFuture for further details.
This function was introduced in Esri::ArcGISRuntime 200.3.
void AttachmentsPopupElement::setDescription(const QString &description)Sets the description to description.
See also description.
void AttachmentsPopupElement::setDisplayType(Esri::ArcGISRuntime::PopupAttachmentsDisplayType displayType)Sets the displayType to displayType.
See also displayType.
void AttachmentsPopupElement::setTitle(const QString &title)Sets the title to title.
See also title.
QString AttachmentsPopupElement::title() constReturns a string value indicating what the element represents. The value can be an empty string.
See also setTitle().
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4