-
- All Implemented Interfaces:
-
android.content.ComponentCallbacks
,android.content.ComponentCallbacks2
public final class FacebookContentProvider extends ContentProvider
Implements a [
ContentProvider](http://developer.android.com/reference/android/content/ContentProvider.html) that can be used to provide binary attachments (e.g., images) to calls made via com.facebook.FacebookDialog.
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.FacebookContentProvider{FACEBOOK_APP_ID}"
* . See the getContentProviderName method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
FacebookContentProvider.Companion
-
Constructor Summary
Constructors Constructor Description FacebookContentProvider()
-
Method Summary
Modifier and Type Method Description Boolean
onCreate()
Cursor
query(Uri uri, Array<String> strings, String s, Array<String> strings2, String s2)
String
getType(Uri uri)
Uri
insert(Uri uri, ContentValues contentValues)
Integer
delete(Uri uri, String s, Array<String> strings)
Integer
update(Uri uri, ContentValues contentValues, String s, Array<String> strings)
ParcelFileDescriptor
openFile(Uri uri, String mode)
-
Methods inherited from class com.facebook.FacebookContentProvider
applyBatch, applyBatch, attachInfo, bulkInsert, call, call, canonicalize, clearCallingIdentity, dump, getCallingPackage, getContext, getPathPermissions, getReadPermission, getStreamTypes, getWritePermission, isTemporary, onConfigurationChanged, onLowMemory, onTrimMemory, openAssetFile, openAssetFile, openFile, openFileHelper, openPipeHelper, openTypedAssetFile, openTypedAssetFile, query, query, refresh, restoreCallingIdentity, setPathPermissions, setReadPermission, setWritePermission, shutdown, uncanonicalize
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
insert
Uri insert(Uri uri, ContentValues contentValues)
-
openFile
ParcelFileDescriptor openFile(Uri uri, String mode)
-
-
-
-