ArcGIS Runtime SDK for iOS
100.15
|
Information about a feature attachment.
Instances of this class represent information about an attachment that is associated with a feature.
Instance Methods | |
(id< AGSCancelable >) | - fetchDataWithCompletion: |
Properties | |
NSInteger | attachmentID |
NSString * | contentType |
BOOL | hasFetchedData |
NSString * | name |
NSInteger | size |
- (id<AGSCancelable>) fetchDataWithCompletion: | (nullable void(^)(NSData *__nullable result, NSError *__nullable error)) | completion |
Fetches the raw data for the attachment
completion | block that is invoked when the operation completes |
|
readnonatomicassign |
The ID of the attachment
|
readnonatomiccopy |
The MIME type of the attachment
|
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.
|
readnonatomiccopy |
The name of the attachment
|
readnonatomicassign |
The size of the attachment in bytes