NativeAppCallContentProvider
最新版本的 SDK 已不再提供此課程。
有此級別的更新版本。前往查看 最新版本。

Implements a ContentProvider that can be used to provide binary attachments (e.g., images) to calls made via FacebookDialog}. The NativeAppCallAttachmentStore class provides methods to attach and clean up the attachments.

Note that this ContentProvider is only necessary if an application wishes to attach images, etc., that are stored in memory and do not have another way to be referenced by a content URI. For images obtained from, e.g., the Camera or Gallery, that already have a content URI associated with them, use of this class is not necessary.

If an application wishes to attach images that are stored in-memory within the application, this content provider must be listed in the application's AndroidManifest.xml, and it should be named according to the pattern "com.facebook.app.NativeAppCallContentProvider{FACEBOOK_APP_ID}". See the getContentProviderName.getAttachmentUrl(String) method.

伸延:ContentProvider
套件:facebook
建構函式
NativeAppCallContentProvider()
public NativeAppCallContentProvider()
類別方式
getAttachmentUrl(String, UUID, String)

Returns the name of the content provider formatted correctly for constructing URLs.

public static String getAttachmentUrl(String applicationId, UUID callId, String attachmentName)
參數說明
applicationIdThe Facebook application ID of the application
callId
attachmentName
Returns
The String to use as the authority portion of a content URI.