ContactsContract.Directory Class

Definition

A Directory represents a contacts corpus, e.g.

[Android.Runtime.Register("android/provider/ContactsContract$Directory", DoNotGenerateAcw=true)]
public sealed class ContactsContract.Directory : Java.Lang.Object
[<Android.Runtime.Register("android/provider/ContactsContract$Directory", DoNotGenerateAcw=true)>]
type ContactsContract.Directory = class
    inherit Object
Inheritance
ContactsContract.Directory
Attributes

Remarks

Android platform documentation

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.

Fields

AccountName

The account with which this directory is associated.

AccountType

The account type which this directory is associated.

CallerPackageParamKey
ContentItemType

The MIME type of a ContentUri item.

ContentType

The MIME-type of ContentUri providing a directory of contact directories.

Default

_ID of the default directory, which represents locally stored contacts.

DirectoryAuthority
DisplayName

An optional name that can be used in the UI to represent this directory, e.g.

EnterpriseDefault
EnterpriseLocalInvisible
ExportSupport

One of ExportSupportNone, ExportSupportAnyAccount, ExportSupportSameAccountOnly.

ExportSupportAnyAccount
Obsolete.

An ExportSupport setting that indicates that the directory allow its data copied to any contacts account.

ExportSupportNone
Obsolete.

An ExportSupport setting that indicates that the directory does not allow any data to be copied out of it.

ExportSupportSameAccountOnly
Obsolete.

An ExportSupport setting that indicates that the directory allow its data copied only to the account specified by AccountType/AccountName.

LocalInvisible

_ID of the directory that represents locally stored invisible contacts.

PackageName

The name of the package that owns this directory.

PhotoSupport

One of F:Android.Provider.ContactsContract+Directory.PhotoSupport, F:Android.Provider.ContactsContract+Directory.PhotoSupport, F:Android.Provider.ContactsContract+Directory.PhotoSupport.

PhotoSupportFull
Obsolete.

An F:Android.Provider.ContactsContract+Directory.PhotoSupport setting that indicates that the directory can produce thumbnails as well as full-size contact photos.

PhotoSupportFullSizeOnly
Obsolete.

An F:Android.Provider.ContactsContract+Directory.PhotoSupport setting that indicates that the directory has full-size contact photos, but cannot provide scaled thumbnails.

PhotoSupportNone
Obsolete.

An F:Android.Provider.ContactsContract+Directory.PhotoSupport setting that indicates that the directory does not provide any photos.

PhotoSupportThumbnailOnly
Obsolete.

An F:Android.Provider.ContactsContract+Directory.PhotoSupport setting that indicates that the directory can only produce small size thumbnails of contact photos.

ShortcutSupport

One of ShortcutSupportNone, ShortcutSupportDataItemsOnly, ShortcutSupportFull.

ShortcutSupportDataItemsOnly
Obsolete.

An ShortcutSupport setting that indicates that the directory allow creation of shortcuts for data items like email, phone or postal address, but not the entire contact.

ShortcutSupportFull
Obsolete.

An ShortcutSupport setting that indicates that the directory allow creation of shortcuts for contact as well as their constituent elements.

ShortcutSupportNone
Obsolete.

An ShortcutSupport setting that indicates that the directory does not allow any shortcuts created for its contacts.

TypeResourceId

The type of directory captured as a resource ID in the context of the package PackageName, e.g.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
ContentUri

The content:// style URI for this table.

EnterpriseContentUri
Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
IsEnterpriseDirectoryId(Int64)
IsRemoteDirectoryId(Int64)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
NotifyDirectoryChange(ContentResolver)

Notifies the system of a change in the list of directories handled by a particular directory provider.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until either another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object, or a specified amount of time has elapsed.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to