Android SDK Version
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
Modifier and TypeClassDescription
public classFacebookContentProvider.Companion
Constructor Summary
ConstructorDescription
FacebookContentProvider()
Method Summary
Modifier and TypeMethodDescription
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
Constructor Detail

FacebookContentProvider

FacebookContentProvider()
Method Detail

onCreate

BooleanonCreate()

query

Cursorquery(Uri uri, Array<String> strings, String s, Array<String> strings2, String s2)

getType

StringgetType(Uri uri)

insert

Uriinsert(Uri uri, ContentValues contentValues)

delete

Integerdelete(Uri uri, String s, Array<String> strings)

update

Integerupdate(Uri uri, ContentValues contentValues, String s, Array<String> strings)