public class

AttachmentManager

extends Object
java.lang.Object
   ↳ com.esri.android.map.AttachmentManager

Summary

Nested Classes
interface AttachmentManager.AttachmentDownloadListener  
interface AttachmentManager.AttachmentRetrievalListener  
Public Constructors
AttachmentManager(Context context, String url, UserCredentials credentials, File attachmentDownloadDir)
The Constructor.
Public Methods
boolean deleteAttachment(String attachmentFileName)
Delete attachment.
void downloadAttachment(int objectID, int attachmentId, String attachmentFileName, AttachmentManager.AttachmentDownloadListener downloadListener)
Download attachment.
File getAttachmentDownloadDir()
Gets the attachment download dir.
File getAttachmentFile(String attachmentFileName)
Gets the attachment file.
void retrieveAttachmentInfos(int objectId, AttachmentManager.AttachmentRetrievalListener attachmentListener)
Retrieve attachment infos.
void setAttachmentDownloadDir(File attachmentDownloadDir)
Sets the attachment download dir.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AttachmentManager (Context context, String url, UserCredentials credentials, File attachmentDownloadDir)

The Constructor.

Parameters
context the context
url the url
credentials the credentials
attachmentDownloadDir the attachment download dir

Public Methods

public boolean deleteAttachment (String attachmentFileName)

Delete attachment.

Parameters
attachmentFileName the attachment file name
Returns
  • true, if delete attachment

public void downloadAttachment (int objectID, int attachmentId, String attachmentFileName, AttachmentManager.AttachmentDownloadListener downloadListener)

Download attachment.

Parameters
objectID the object id
attachmentId the attachment id
attachmentFileName the attachment file name
downloadListener the download listener

public File getAttachmentDownloadDir ()

Gets the attachment download dir.

Returns
  • the attachment download dir

public File getAttachmentFile (String attachmentFileName)

Gets the attachment file.

Parameters
attachmentFileName the attachment file name
Returns
  • the attachment file

public void retrieveAttachmentInfos (int objectId, AttachmentManager.AttachmentRetrievalListener attachmentListener)

Retrieve attachment infos.

Parameters
objectId the object id
attachmentListener the attachment listener

public void setAttachmentDownloadDir (File attachmentDownloadDir)

Sets the attachment download dir.

Parameters
attachmentDownloadDir the attachment download dir