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.
인스턴스 메서드
onCreate()
public boolean onCreate()
query(Uri, String, String, String, String)
public Cursor query(Uri uri, String strings, String s, String strings2, String s2)
매개변수설명
uri
strings
s
strings2
s2
getType(Uri)
public String getType(Uri uri)
매개변수설명
uri
insert(Uri, ContentValues)
public Uri insert(Uri uri, ContentValues contentValues)
매개변수설명
uri
contentValues
delete(Uri, String, String)
public int delete(Uri uri, String s, String strings)
매개변수설명
uri
s
strings
update(Uri, ContentValues, String, String)
public int update(Uri uri, ContentValues contentValues, String s, String strings)
매개변수설명
uri
contentValues
s
strings
openFile(Uri, String)
public ParcelFileDescriptor openFile(Uri uri, String mode)
매개변수설명
uri
mode