FormAttachment

Represents an attachment belonging to a feature form. Wraps the com.arcgismaps.data.Attachment object and adds additional properties and methods to support displaying attachments in a FeatureForm.

Since

200.5.0

Properties

Link copied to clipboard
Link copied to clipboard

The MIME content type of the FormAttachment.

Link copied to clipboard

The local temporary file path that stores the attachment once it is loaded.

Link copied to clipboard

Indicates whether "loading" (fetching the data) can be accomplished without using the network. This is True if data needs to be pulled from a database and False if loading causes a network request.

Link copied to clipboard

The name of the FormAttachment.

Link copied to clipboard
val size: Long

The size of the FormAttachment in bytes.

Link copied to clipboard

Inherited properties

Link copied to clipboard
open override val loadStatus: StateFlow<LoadStatus>

The load status.

Functions

Link copied to clipboard

Creates the full image for displaying the attachment in full screen or larger than a thumbnail. This is only applicable if the attachment type is FormAttachmentType.Image.

Link copied to clipboard
suspend fun createThumbnail(width: Int, height: Int): Result<BitmapDrawable>

Creates a thumbnail image with the specified width and height. This is only applicable if the attachment type is FormAttachmentType.Image.

Inherited functions

Link copied to clipboard
open override fun cancelLoad()

Cancels loading metadata for the Loadable object.

Link copied to clipboard
open suspend override fun load(): Result<Unit>

Loads the metadata for the object.

Link copied to clipboard
open suspend override fun retryLoad(): Result<Unit>

Loads or retries loading metadata for the object.