NativeAppCallAttachmentStore
คลาสนี้ไม่มีให้ใช้งานใน SDK เวอร์ชั่นล่าสุดอีกต่อไป
เวอร์ชั่นที่ใหม่กว่าของคลาสนี้พร้อมแล้ว ตรวจสอบได้ เวอร์ชั่นล่าสุด

This class works in conjunction with NativeAppCallContentProvider to allow apps to attach binary attachments (e.g., images) to native dialogs launched via the FacebookDialog class. It stores attachments in temporary files and allows the Facebook application to retrieve them via the content provider.

Callers are generally not expected to need to use this class directly; see OpenGraphActionDialogBuilder.setImageAttachmentsForObject.setImageAttachmentsForObject(String, java.util.List) for an example of a function that will accept attachments, attach them to the native dialog call, and add them to the content provider automatically.

ขยาย:Object
การนำไปใช้:AttachmentDataSource
แพ็คเกจ:facebook
ผู้สร้าง
NativeAppCallAttachmentStore()
public NativeAppCallAttachmentStore()
วิธีการแบบอินสแตนซ์
addAttachmentsForCall(Context, UUID, Map)

Adds a number of bitmap attachments associated with a native app call. The attachments will be served via openFile.openFile(android.net.Uri, String).

public void addAttachmentsForCall(Context context, UUID callId, Map imageAttachments)
พารามิเตอร์คำอธิบาย
contextThe Context the call is being made from
callIdThe unique ID of the call
imageAttachmentsA Map of attachment names to Bitmaps; the attachment names will be part of the URI processed by openFile
addAttachmentFilesForCall(Context, UUID, Map)

Adds a number of bitmap attachment files associated with a native app call. The attachments will be served via openFile.openFile(android.net.Uri, String).

public void addAttachmentFilesForCall(Context context, UUID callId, Map imageAttachmentFiles)
พารามิเตอร์คำอธิบาย
contextThe Context the call is being made from
callIdThe unique ID of the call
imageAttachmentFiles
cleanupAttachmentsForCall(Context, UUID)

Removes any temporary files associated with a particular native app call.

public void cleanupAttachmentsForCall(Context context, UUID callId)
พารามิเตอร์คำอธิบาย
contextThe Context the call is being made from
callIdThe unique ID of the call
openAttachment(UUID, String)
public File openAttachment(UUID callId, String attachmentName)
พารามิเตอร์คำอธิบาย
callId
attachmentName