-
- 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 classFacebookContentProvider.Companion
-
Constructor Summary
Constructors Constructor Description FacebookContentProvider()
-
Method Summary
Modifier and Type Method Description BooleanonCreate()Cursorquery(Uri uri, Array<String> strings, String s, Array<String> strings2, String s2)StringgetType(Uri uri)Uriinsert(Uri uri, ContentValues contentValues)Integerdelete(Uri uri, String s, Array<String> strings)Integerupdate(Uri uri, ContentValues contentValues, String s, Array<String> strings)ParcelFileDescriptoropenFile(Uri uri, String mode)-
Methods inherited from class com.facebook.FacebookContentProvider
applyBatch, applyBatch, attachInfo, bulkInsert, call, call, canonicalize, clearCallingIdentity, delete, dump, getCallingAttributionSource, getCallingAttributionTag, getCallingPackage, getCallingPackageUnchecked, getContext, getPathPermissions, getReadPermission, getStreamTypes, getWritePermission, insert, isTemporary, onCallingPackageChanged, onConfigurationChanged, onLowMemory, onTrimMemory, openAssetFile, openAssetFile, openFile, openFileHelper, openPipeHelper, openTypedAssetFile, openTypedAssetFile, query, query, refresh, requireContext, restoreCallingIdentity, setPathPermissions, setReadPermission, setWritePermission, shutdown, uncanonicalize, update -
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)
-
-
-
-