-
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
Nested Classes Modifier and Type Class Description public final class
NativeAppCallAttachmentStore.Attachment
-
Field Summary
Fields Modifier and Type Field Description private final String
ATTACHMENTS_DIR_NAME
public final static NativeAppCallAttachmentStore
INSTANCE
-
Method Summary
Modifier and Type Method Description final static NativeAppCallAttachmentStore.Attachment
createAttachment(UUID callId, Bitmap attachmentBitmap)
final static NativeAppCallAttachmentStore.Attachment
createAttachment(UUID callId, Uri attachmentUri)
final static Unit
addAttachments(Collection<NativeAppCallAttachmentStore.Attachment> attachments)
final static Unit
cleanupAttachmentsForCall(UUID callId)
Removes any temporary files associated with a particular native app call. final static File
openAttachment(UUID callId, String attachmentName)
final static File
getAttachmentsDirectory()
final static File
ensureAttachmentsDirectoryExists()
final static File
getAttachmentsDirectoryForCall(UUID callId, Boolean create)
final static File
getAttachmentFile(UUID callId, String attachmentName, Boolean createDirs)
final static Unit
cleanupAllAttachments()
final String
getATTACHMENTS_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()
-
-
-
-