java.lang.Object | |||
↳ | android.content.pm.PackageItemInfo | ||
↳ | android.content.pm.ComponentInfo | ||
↳ | android.content.pm.ProviderInfo |
Holds information about a specific
content provider
. This is returned by
PackageManager.resolveContentProvider()
.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | FLAG_SINGLE_USER | Bit in flags : If set, a single instance of the provider will
run for all users on the device. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR | |||||||||||
authority | The name provider is published under content:// | ||||||||||
flags | Options that have been set in the provider declaration in the manifest. | ||||||||||
grantUriPermissions | If true, additional permissions to specific Uris in this content
provider can be granted, as per the
grantUriPermissions attribute. |
||||||||||
initOrder | Used to control initialization order of single-process providers running in the same process. | ||||||||||
isSyncable | This field was deprecated in API level 5. This flag is now being ignored. The current way to make a provider syncable is to provide a SyncAdapter service for a given provider/account type. | ||||||||||
multiprocess | If true, this content provider allows multiple instances of itself to run in different process. | ||||||||||
pathPermissions | If non-null, these are path-specific permissions that are allowed for accessing the provider. | ||||||||||
readPermission | Optional permission required for read-only access this content provider. | ||||||||||
uriPermissionPatterns | If non-null, these are the patterns that are allowed for granting URI permissions. | ||||||||||
writePermission | Optional permission required for read/write access this content provider. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.content.pm.ComponentInfo
| |||||||||||
From class
android.content.pm.PackageItemInfo
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
Returns a string containing a concise, human-readable description of this
object.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.content.pm.ComponentInfo
| |||||||||||
From class
android.content.pm.PackageItemInfo
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
Bit in flags
: If set, a single instance of the provider will
run for all users on the device. Set from the
singleUser
attribute.
Options that have been set in the provider declaration in the
manifest.
These include: FLAG_SINGLE_USER
.
If true, additional permissions to specific Uris in this content
provider can be granted, as per the
grantUriPermissions
attribute.
Used to control initialization order of single-process providers running in the same process. Higher goes first.
This field was deprecated
in API level 5.
This flag is now being ignored. The current way to make a provider
syncable is to provide a SyncAdapter service for a given provider/account type.
Whether or not this provider is syncable.
If true, this content provider allows multiple instances of itself
to run in different process. If false, a single instances is always
run in processName
.
If non-null, these are path-specific permissions that are allowed for accessing the provider. Any permissions listed here will allow a holding client to access the provider, and the provider will check the URI it provides when making calls against the patterns here.
Optional permission required for read-only access this content provider.
If non-null, these are the patterns that are allowed for granting URI
permissions. Any URI that does not match one of these patterns will not
allowed to be granted. If null, all URIs are allowed. The
PackageManager.GET_URI_PERMISSION_PATTERNS
flag must be specified for
this field to be filled in.
Optional permission required for read/write access this content provider.
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString
method
if you intend implementing your own toString
method.