Skip To Content ArcGIS for Developers Sign In Dashboard

Obsolete Members for PortalFolderListModel

The following members of QML type PortalFolderListModel are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

Methods

  • void append(PortalFolder portalFolder) (obsolete)
  • void clear() (obsolete)
  • void insert(int index, PortalFolder PortalFolder) (obsolete)
  • void move(int from, int to) (obsolete)
  • void remove(int index, int count) (obsolete)

Method Documentation

void append(PortalFolder portalFolder)

Appends a PortalFolder to the portalFolder list model.

This method only affects the local instance of this list model class. To create a folder in the user's online portal, use PortalUser::createFolder and PortalUser::fetchContent instead.


void clear()

Removes all portalFolders from the list model.

This method only affects the local instance of this list model class. To remove the folders from the online portal, use PortalUser::deleteFolder instead.


void insert(int index, PortalFolder PortalFolder)

Inserts a PortalFolder at a specified index in the list.

This method will append to the list model if the specified index is greater than the current size of the list.

This method only affects the local instance of this list model class. To create a folder in the user's online portal, use PortalUser::createFolder and PortalUser::fetchContent instead.

Note: There is no method to change the order of a portal user's folders in the API.


void move(int from, int to)

Moves one PortalFolder from an index in the list model to a different index.

This method only affects the local instance of this list model class. This method will not move the folder in the online portal.


void remove(int index, int count = 1)

Removes one or more objects starting at the specified index.

  • index Index of first object to remove.
  • count Number of objects to remove. This parameter defaults to 1.

This method only affects the local instance of this list model class. To remove the folder at index from the online portal, use PortalUser::deleteFolder instead.



Feedback on this topic?