FileDocCategorySizeDatePackage
ProviderInfo.javaAPI DocAndroid 1.5 API4714Wed May 06 22:41:54 BST 2009android.content.pm

ProviderInfo

public final class ProviderInfo extends ComponentInfo implements android.os.Parcelable
Holds information about a specific {@link android.content.ContentProvider content provider}. This is returned by {@link android.content.pm.PackageManager#resolveContentProvider(java.lang.String, int) PackageManager.resolveContentProvider()}.

Fields Summary
public String
authority
The name provider is published under content://
public String
readPermission
Optional permission required for read-only access this content provider.
public String
writePermission
Optional permission required for read/write access this content provider.
public boolean
grantUriPermissions
If true, additional permissions to specific Uris in this content provider can be granted, as per the {@link android.R.styleable#AndroidManifestProvider_grantUriPermissions grantUriPermissions} attribute.
public android.os.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 {@link PackageManager#GET_URI_PERMISSION_PATTERNS PackageManager.GET_URI_PERMISSION_PATTERNS} flag must be specified for this field to be filled in.
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 {@link #processName}.
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 static final Parcelable.Creator
CREATOR
Constructors Summary
public ProviderInfo()


      
    
public ProviderInfo(ProviderInfo orig)

        super(orig);
        authority = orig.authority;
        readPermission = orig.readPermission;
        writePermission = orig.writePermission;
        grantUriPermissions = orig.grantUriPermissions;
        uriPermissionPatterns = orig.uriPermissionPatterns;
        multiprocess = orig.multiprocess;
        initOrder = orig.initOrder;
        isSyncable = orig.isSyncable;
    
private ProviderInfo(android.os.Parcel in)

        super(in);
        authority = in.readString();
        readPermission = in.readString();
        writePermission = in.readString();
        grantUriPermissions = in.readInt() != 0;
        uriPermissionPatterns = in.createTypedArray(PatternMatcher.CREATOR);
        multiprocess = in.readInt() != 0;
        initOrder = in.readInt();
        isSyncable = in.readInt() != 0;
    
Methods Summary
public intdescribeContents()

        return 0;
    
public java.lang.StringtoString()


       
        return "ContentProviderInfo{name=" + authority + " className=" + name
            + " isSyncable=" + (isSyncable ? "true" : "false") + "}";
    
public voidwriteToParcel(android.os.Parcel out, int parcelableFlags)

        super.writeToParcel(out, parcelableFlags);
        out.writeString(authority);
        out.writeString(readPermission);
        out.writeString(writePermission);
        out.writeInt(grantUriPermissions ? 1 : 0);
        out.writeTypedArray(uriPermissionPatterns, parcelableFlags);
        out.writeInt(multiprocess ? 1 : 0);
        out.writeInt(initOrder);
        out.writeInt(isSyncable ? 1 : 0);