ArcGIS Runtime SDK for iOS: AGSPortalItemContentParameters Class Reference
ArcGIS Runtime SDK for iOS  100.15
AGSPortalItemContentParameters Class Reference

Description

Content for a new AGSPortalItem.

Instances of this class represent content for a new portal item created by AGSPortal::addPortalItem:withContentParams:toFolder:

@define{AGSPortalItemContentParameters.h, ArcGIS}

Since
100
Inheritance diagram for AGSPortalItemContentParameters:

Class Methods

(instancetype) + portalItemContentParametersWithData:filename:
 
(instancetype) + portalItemContentParametersWithJSON:
 
(instancetype) + portalItemContentParametersWithURL:
 

Properties

NSString * filename
 
id value
 

Method Documentation

◆ portalItemContentParametersWithData:filename:

+ (instancetype) portalItemContentParametersWithData: (NSData *)  data
filename: (nullable NSString *)  filename 

Initialize an AGSPortalItemContentParameter object with data.

Parameters
dataThe data representing the file to be added or updated on an AGSPortalItem.
filenameThe file name to be used for the file being uploaded for this content item.
Returns
An autoreleased AGSPortalItemContentParameters object.
Since
100

◆ portalItemContentParametersWithJSON:

+ (instancetype) portalItemContentParametersWithJSON: (id)  JSONObject

Initialize an AGSPortalItemContentParameter object with json.

Parameters
JSONObjectThe json representing the content (like a web map) for the AGSPortalItem.
Returns
An autoreleased AGSPortalItemContentParameters object.
Since
100

◆ portalItemContentParametersWithURL:

+ (instancetype) portalItemContentParametersWithURL: (NSURL *)  URL

Initialize an AGSPortalItemContentParameter object with a url.

Parameters
URLThe url to be used for the AGSPortalItem.
Returns
An autoreleased AGSPortalItemContentParameters object.
Since
100

Property Documentation

◆ filename

- (NSString*) filename
readnonatomiccopy

The name of the file being uploaded for this content item, including extension.

Since
100

◆ value

- (id) value
readnonatomicstrong

The object representing the content to be added or updated. Valid objects for adding/updating are:

  • NSData - for file data
  • NSURL - for service items
  • NSDictionary or NSArray - for json content, such as a web map
    Since
    100