Android
android.content.pm
public final class

android.content.pm.ProviderInfo

java.lang.Object
android.content.pm.PackageItemInfo
android.content.pm.ComponentInfo
android.content.pm.ProviderInfo Parcelable

Holds information about a specific content provider. This is returned by PackageManager.resolveContentProvider().

Summary

Constants

      Value  
Creator<ProviderInfo CREATOR       
Constants inherited from interface android.os.Parcelable

Fields

public      String  authority  The name provider is published under content://  
public      boolean  grantUriPermissions  If true, additional permissions to specific Uris in this content provider can be granted, as per the grantUriPermissions attribute. 
public      int  initOrder  Used to control initialization order of single-process providers running in the same process. 
public      boolean  isSyncable  Whether or not this provider is syncable. 
public      boolean  multiprocess  If true, this content provider allows multiple instances of itself to run in different process. 
public      String  readPermission  Optional permission required for read-only access this content provider. 
public      PatternMatcher[]  uriPermissionPatterns  If non-null, these are the patterns that are allowed for granting URI permissions. 
public      String  writePermission  Optional permission required for read/write access this content provider. 
Fields inherited from class android.content.pm.ComponentInfo
Fields inherited from class android.content.pm.PackageItemInfo

Public Constructors

            ProviderInfo()
            ProviderInfo(ProviderInfo orig)

Public Methods

          int  describeContents()
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
          String  toString()
Returns a string containing a concise, human-readable description of the receiver.
          void  writeToParcel(Parcel out, int parcelableFlags)
Methods inherited from class android.content.pm.ComponentInfo
Methods inherited from class android.content.pm.PackageItemInfo
Methods inherited from class java.lang.Object
Methods inherited from interface android.os.Parcelable

Details

Constants

public static final Creator<ProviderInfo> CREATOR

Fields

public String authority

The name provider is published under content://

public boolean grantUriPermissions

If true, additional permissions to specific Uris in this content provider can be granted, as per the grantUriPermissions attribute.

public int initOrder

Used to control initialization order of single-process providers running in the same process. Higher goes first.

public boolean isSyncable

Whether or not this provider is syncable.

public boolean multiprocess

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.

public String readPermission

Optional permission required for read-only access this content provider.

public PatternMatcher[] uriPermissionPatterns

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.

public String writePermission

Optional permission required for read/write access this content provider.

Public Constructors

public ProviderInfo()

public ProviderInfo(ProviderInfo orig)

Public Methods

public int describeContents()

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

public String toString()

Returns a string containing a concise, human-readable description of the receiver.

Returns

  • String a printable representation for the receiver.

public void writeToParcel(Parcel out, int parcelableFlags)

Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48