ArcGIS Runtime SDK for iOS: AGSAttachment Class Reference
ArcGIS Runtime SDK for iOS  100.11
AGSAttachment Class Reference

Description

Information about a feature attachment.

Instances of this class represent information about an attachment that is associated with a feature.

Since
100
Inheritance diagram for AGSAttachment:
AGSObject

Instance Methods

(id< AGSCancelable >) - fetchDataWithCompletion:
 

Properties

NSInteger attachmentID
 
NSString * contentType
 
BOOL hasFetchedData
 
NSString * name
 
NSInteger size
 

Method Documentation

◆ fetchDataWithCompletion:

- (id<AGSCancelable>) fetchDataWithCompletion: (nullable void(^)(NSData *__nullable result, NSError *__nullable error))  completion

Fetches the raw data for the attachment

Parameters
completionblock that is invoked when the operation completes
Returns
operation which can be canceled
Since
100

Property Documentation

◆ attachmentID

- (NSInteger) attachmentID
readnonatomicassign

The ID of the attachment

Since
100

◆ contentType

- (NSString*) contentType
readnonatomiccopy

The MIME type of the attachment

Since
100

◆ hasFetchedData

- (BOOL) hasFetchedData
readnonatomicassign

Indicates whether the attachment data has already been retrieved. Even if the data has been retrieved previously, you will still need to call fetchDataWithCompletion: to get the data, however that operation should complete quickly since the data is already available locally and so you can request it proactively. Otherwise, it could take some time to retrieve the data from its source, and you should fetch the data only when the user explicitly asks for it.

Since
100

◆ name

- (NSString*) name
readnonatomiccopy

The name of the attachment

Since
100

◆ size

- (NSInteger) size
readnonatomicassign

The size of the attachment in bytes

Since
100