-
public class NativeAppCallAttachmentStorecom.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
Nested Classes Modifier and Type Class Description public final classNativeAppCallAttachmentStore.Attachment
-
Field Summary
Fields Modifier and Type Field Description private final StringATTACHMENTS_DIR_NAMEpublic final static NativeAppCallAttachmentStoreINSTANCE
-
Method Summary
Modifier and Type Method Description 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()-
-
Method Detail
-
createAttachment
final static NativeAppCallAttachmentStore.Attachment createAttachment(UUID callId, Bitmap attachmentBitmap)
-
createAttachment
final static NativeAppCallAttachmentStore.Attachment createAttachment(UUID callId, Uri attachmentUri)
-
addAttachments
final static Unit addAttachments(Collection<NativeAppCallAttachmentStore.Attachment> attachments)
-
cleanupAttachmentsForCall
final static Unit cleanupAttachmentsForCall(UUID callId)
Removes any temporary files associated with a particular native app call.
- Parameters:
callId- the unique ID of the call
-
openAttachment
final static File openAttachment(UUID callId, String attachmentName)
-
getAttachmentsDirectory
@Synchronized() final static File getAttachmentsDirectory()
-
ensureAttachmentsDirectoryExists
final static File ensureAttachmentsDirectoryExists()
-
getAttachmentsDirectoryForCall
final static File getAttachmentsDirectoryForCall(UUID callId, Boolean create)
-
getAttachmentFile
final static File getAttachmentFile(UUID callId, String attachmentName, Boolean createDirs)
-
cleanupAllAttachments
final static Unit cleanupAllAttachments()
-
getATTACHMENTS_DIR_NAME
final String getATTACHMENTS_DIR_NAME()
-
-
-
-