AttachmentsPopupElement Class

  • AttachmentsPopupElement
  • class Esri::ArcGISRuntime::AttachmentsPopupElement

    Represents a pop-up element of type attachments that is displayed in a pop-up for a geoelement. More...

    Header: #include <AttachmentsPopupElement>
    Since: Esri::ArcGISRuntime 100.14
    Inherits: Esri::ArcGISRuntime::PopupElement

    Public Functions

    AttachmentsPopupElement(Esri::ArcGISRuntime::PopupAttachmentsDisplayType displayType, QObject *parent = nullptr)
    virtual ~AttachmentsPopupElement() override
    QString description() const
    Esri::ArcGISRuntime::PopupAttachmentsDisplayType displayType() const
    void setDescription(const QString &description)
    void setDisplayType(Esri::ArcGISRuntime::PopupAttachmentsDisplayType displayType)
    void setTitle(const QString &title)
    QString title() const

    Detailed Description

    See also PopupElementType and PopupElement.

    Member Function Documentation

    AttachmentsPopupElement::AttachmentsPopupElement(Esri::ArcGISRuntime::PopupAttachmentsDisplayType displayType, QObject *parent = nullptr)

    Creates a new attachments pop-up element with the given PopupAttachmentsDisplayType.

    • displayType - Indicates how to display the attachments.
    • parent - The optional parent QObject.

    [override virtual] AttachmentsPopupElement::~AttachmentsPopupElement()

    Destructor.

    QString AttachmentsPopupElement::description() const

    Returns a string value describing the element in detail. Can be an empty string.

    See also setDescription().

    Esri::ArcGISRuntime::PopupAttachmentsDisplayType AttachmentsPopupElement::displayType() const

    Returns how to display the attachments. If `list` is specified, attachments show as links. If `preview` is specified, attachments expand to the width of the pop-up. Setting the value to `auto` allows applications to choose the most suitable default experience for their application.

    See also setDisplayType().

    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() const

    Returns a string value indicating what the element represents. Can be an empty string.

    See also setTitle().

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.