Android SDK Version


public class NativeAppCallAttachmentStore
com.facebook.internal is solely for the use of other packages within the Facebook SDK for Android. Use of any of the classes in this package is unsupported, and they may be modified or removed without warning at any time.
This class works in conjunction with com.facebook.FacebookContentProvider to allow apps to attach binary attachments (e.g., images) to native dialogs launched via the sdk.It stores attachments in temporary files and allows the Facebook application to retrieve them via the content provider.
Nested Class Summary
Modifier and TypeClassDescription
public final classNativeAppCallAttachmentStore.Attachment
Field Summary
Modifier and TypeFieldDescription
private final StringATTACHMENTS_DIR_NAME
public final static NativeAppCallAttachmentStoreINSTANCE
Method Summary
Modifier and TypeMethodDescription
final static NativeAppCallAttachmentStore.AttachmentcreateAttachment(UUID callId, Bitmap attachmentBitmap)
final static NativeAppCallAttachmentStore.AttachmentcreateAttachment(UUID callId, Uri attachmentUri)
final static UnitaddAttachments(Collection<NativeAppCallAttachmentStore.Attachment> attachments)
final static UnitcleanupAttachmentsForCall(UUID callId) Removes any temporary files associated with a particular native app call.
final static FileopenAttachment(UUID callId, String attachmentName)
final static FilegetAttachmentsDirectory()
final static FileensureAttachmentsDirectoryExists()
final static FilegetAttachmentsDirectoryForCall(UUID callId, Boolean create)
final static FilegetAttachmentFile(UUID callId, String attachmentName, Boolean createDirs)
final static UnitcleanupAllAttachments()
final StringgetATTACHMENTS_DIR_NAME()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail

createAttachment

 final static NativeAppCallAttachmentStore.AttachmentcreateAttachment(UUID callId, Bitmap attachmentBitmap)

createAttachment

 final static NativeAppCallAttachmentStore.AttachmentcreateAttachment(UUID callId, Uri attachmentUri)

addAttachments

 final static UnitaddAttachments(Collection<NativeAppCallAttachmentStore.Attachment> attachments)

cleanupAttachmentsForCall

 final static UnitcleanupAttachmentsForCall(UUID callId)
Removes any temporary files associated with a particular native app call.
Parameters:
callId - the unique ID of the call

openAttachment

 final static FileopenAttachment(UUID callId, String attachmentName)

getAttachmentsDirectory

@Synchronized() final static FilegetAttachmentsDirectory()

ensureAttachmentsDirectoryExists

 final static FileensureAttachmentsDirectoryExists()

getAttachmentsDirectoryForCall

 final static FilegetAttachmentsDirectoryForCall(UUID callId, Boolean create)

getAttachmentFile

 final static FilegetAttachmentFile(UUID callId, String attachmentName, Boolean createDirs)

cleanupAllAttachments

 final static UnitcleanupAllAttachments()

getATTACHMENTS_DIR_NAME

 final StringgetATTACHMENTS_DIR_NAME()