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) (obsolete)
  • void clear() (obsolete)
  • void insert(index, PortalFolder portalFolder) (obsolete)
  • void move(from, int to) (obsolete)
  • void remove(index, int count = 1) (obsolete)

Method Documentation

void append(portalFolder)

This method is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

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()

This method is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

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(index, PortalFolder portalFolder)

This method is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

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(from, int to)

This method is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

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(index, int count = 1)

This method is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

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?