public final class NativeAppCallAttachmentStore
extends java.lang.Object
This class works in conjunction with 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.
| Modifier and Type | Class and Description |
|---|---|
static class |
NativeAppCallAttachmentStore.Attachment |
| Modifier and Type | Method and Description |
|---|---|
static void |
addAttachments(java.util.Collection<NativeAppCallAttachmentStore.Attachment> attachments) |
static void |
cleanupAllAttachments() |
static void |
cleanupAttachmentsForCall(java.util.UUID callId)
Removes any temporary files associated with a particular native app call.
|
static NativeAppCallAttachmentStore.Attachment |
createAttachment(java.util.UUID callId,
android.graphics.Bitmap attachmentBitmap) |
static NativeAppCallAttachmentStore.Attachment |
createAttachment(java.util.UUID callId,
android.net.Uri attachmentUri) |
static java.io.File |
openAttachment(java.util.UUID callId,
java.lang.String attachmentName) |
public static NativeAppCallAttachmentStore.Attachment createAttachment(java.util.UUID callId, android.graphics.Bitmap attachmentBitmap)
public static NativeAppCallAttachmentStore.Attachment createAttachment(java.util.UUID callId, android.net.Uri attachmentUri)
public static void addAttachments(java.util.Collection<NativeAppCallAttachmentStore.Attachment> attachments)
public static void cleanupAttachmentsForCall(java.util.UUID callId)
callId - the unique ID of the callpublic static java.io.File openAttachment(java.util.UUID callId,
java.lang.String attachmentName)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic static void cleanupAllAttachments()