Added in API level 1

ProviderInfo


class ProviderInfo : ComponentInfo, Parcelable
kotlin.Any
   ↳ 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().

Summary

Constants
static Int

Bit in flags: If set, a single instance of the provider will run for all users on the device.

Inherited constants
Public constructors

Public methods
Int

Unit
dump(pw: Printer!, prefix: String!)

String

Unit
writeToParcel(out: Parcel, parcelableFlags: Int)

Inherited functions
Properties
static Parcelable.Creator<ProviderInfo!>

String!

The name provider is published under content://

Int

Options that have been set in the provider declaration in the manifest.

Boolean

If true, always apply URI permission grants, as per the forceUriPermissions attribute.

Boolean

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

Int

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

Boolean

Whether or not this provider is syncable.

Boolean

If true, this content provider allows multiple instances of itself to run in different process.

Array<PathPermission!>!

If non-null, these are path-specific permissions that are allowed for accessing the provider.

String!

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

Array<PatternMatcher!>!

If non-null, these are the patterns that are allowed for granting URI permissions.

String!

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

Inherited properties

Constants

FLAG_SINGLE_USER

Added in API level 17
static val FLAG_SINGLE_USER: Int

Bit in flags: If set, a single instance of the provider will run for all users on the device. Set from the android.R.attr#singleUser attribute.

Value: 1073741824

Public constructors

ProviderInfo

Added in API level 1
ProviderInfo()

ProviderInfo

Added in API level 1
ProviderInfo(orig: ProviderInfo!)

Public methods

describeContents

Added in API level 1
fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

dump

Added in API level 19
fun dump(
    pw: Printer!,
    prefix: String!
): Unit

toString

Added in API level 1
fun toString(): String
Return
String a string representation of the object.

writeToParcel

Added in API level 1
fun writeToParcel(
    out: Parcel,
    parcelableFlags: Int
): Unit
Parameters
dest The Parcel in which the object should be written. This value cannot be null.
flags Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

Added in API level 1
static val CREATOR: Parcelable.Creator<ProviderInfo!>

authority

Added in API level 1
var authority: String!

The name provider is published under content://

flags

Added in API level 17
var flags: Int

Options that have been set in the provider declaration in the manifest. These include: FLAG_SINGLE_USER.

forceUriPermissions

Added in API level 29
var forceUriPermissions: Boolean

If true, always apply URI permission grants, as per the forceUriPermissions attribute.

grantUriPermissions

Added in API level 1
var grantUriPermissions: Boolean

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

initOrder

Added in API level 1
var initOrder: Int

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

isSyncable

Added in API level 1
Deprecated in API level 15
var isSyncable: Boolean

Deprecated: 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.

multiprocess

Added in API level 1
var multiprocess: Boolean

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.

pathPermissions

Added in API level 4
var pathPermissions: Array<PathPermission!>!

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.

readPermission

Added in API level 1
var readPermission: String!

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

uriPermissionPatterns

Added in API level 1
var uriPermissionPatterns: Array<PatternMatcher!>!

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.

writePermission

Added in API level 1
var writePermission: String!

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