다음을 통해 공유


ContactsContract.Groups Class

Definition

Constants for the groups table.

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

Remarks

Constants for the groups table. Only per-account groups are supported. <h2>Columns</h2> <table class="jd-sumtable"> <tr> <th colspan='4'>Groups</th> </tr> <tr> <td>long</td> <td>#_ID</td> <td>read-only</td> <td>Row ID. Sync adapter should try to preserve row IDs during updates. In other words, it would be a really bad idea to delete and reinsert a group. A sync adapter should always do an update instead.</td> </tr> # <tr> <td>String</td> <td>#DATA_SET</td> <td>read/write-once</td> <td>

The data set within the account that this group belongs to. This allows multiple sync adapters for the same account type to distinguish between each others' group data. The combination of #ACCOUNT_TYPE, #ACCOUNT_NAME, and #DATA_SET identifies a set of data that is associated with a single sync adapter.

This is empty by default, and is completely optional. It only needs to be populated if multiple sync adapters are entering distinct data for the same account type and account name.

It should be set at the time the group is inserted and never changed afterwards.

</td> </tr> <tr> <td>String</td> <td>#TITLE</td> <td>read/write</td> <td>The display title of this group.</td> </tr> <tr> <td>String</td> <td>#NOTES</td> <td>read/write</td> <td>Notes about the group.</td> </tr> <tr> <td>String</td> <td>#SYSTEM_ID</td> <td>read/write</td> <td>The ID of this group if it is a System Group, i.e. a group that has a special meaning to the sync adapter, null otherwise.</td> </tr> <tr> <td>int</td> <td>#SUMMARY_COUNT</td> <td>read-only</td> <td>The total number of Contacts that have CommonDataKinds.GroupMembership in this group. Read-only value that is only present when querying Groups#CONTENT_SUMMARY_URI.</td> </tr> <tr> <td>int</td> <td>#SUMMARY_WITH_PHONES</td> <td>read-only</td> <td>The total number of Contacts that have both CommonDataKinds.GroupMembership in this group, and also have phone numbers. Read-only value that is only present when querying Groups#CONTENT_SUMMARY_URI.</td> </tr> <tr> <td>int</td> <td>#GROUP_VISIBLE</td> <td>read-only</td> <td>Flag indicating if the contacts belonging to this group should be visible in any user interface. Allowed values: 0 and 1.</td> </tr> <tr> <td>int</td> <td>#DELETED</td> <td>read/write</td> <td>The "deleted" flag: "0" by default, "1" if the row has been marked for deletion. When android.content.ContentResolver#delete is called on a group, it is marked for deletion. The sync adaptor deletes the group on the server and then calls ContactResolver.delete once more, this time setting the the ContactsContract#CALLER_IS_SYNCADAPTER query parameter to finalize the data removal.</td> </tr> <tr> <td>int</td> <td>#SHOULD_SYNC</td> <td>read/write</td> <td>Whether this group should be synced if the SYNC_EVERYTHING settings is false for this group's account.</td> </tr> </table>

Java documentation for android.provider.ContactsContract.Groups.

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

ContentItemType

The MIME type of a single group.

ContentType

The MIME type of a directory of groups.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
ContentSummaryUri

The content:// style URI for this table joined with details data from ContactsContract.Data.

ContentUri

The content:// style URI for this table

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)
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)
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 it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until 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