Aracılığıyla paylaş


ContentProviderAttribute Class

Definition

Generates a /manifest/application/provider element within AndroidManifest.xml.

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
[System.Serializable]
public class ContentProviderAttribute : Attribute, Java.Interop.IJniNameProviderAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)>]
[<System.Serializable>]
type ContentProviderAttribute = class
    inherit Attribute
    interface IJniNameProviderAttribute
Inheritance
ContentProviderAttribute
Attributes
Implements

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

ContentProviderAttribute(String[])

Constructs and initializes a new ContentProviderAttribute instance with the specified URI authorities.

Properties

Authorities

The URI authorities that identify data under the perview of the content provider.

DirectBootAware
Enabled

Whether or not the provider can be instantiated by the system.

Exported

Whether or not the provider can be launched by components of other applications.

GrantUriPermissions

Whether or not those who ordinarily would not have permission to access the content provider's data can be granted to do so.

Icon

An icon representing the provider.

InitOrder

The order in which the content provider should be instantiated.

Label

A user-readable label for the provider.

MultiProcess

Whether an instance of the provider can be launched into the process of the component that started it.

Name

The name of the class that implements the provider.

Permission

The name of a permission that clients must have to launch the provider.

Process

The name of the process in which the activity should run.

ReadPermission

A permission that clients must have to query the content provider.

RoundIcon
Syncable

Whether or not the data under the content provider's control is to be synchronized with data on a server.

WritePermission

A permission that clients must have to make changes to the data controlled by the content provider.

Applies to

See also