Udostępnij za pośrednictwem


ContactsContract.PrimaryAccountName Field

Definition

A query parameter specifing a primary account.

[Android.Runtime.Register("PRIMARY_ACCOUNT_NAME")]
public const string PrimaryAccountName;
[<Android.Runtime.Register("PRIMARY_ACCOUNT_NAME")>]
val mutable PrimaryAccountName : string

Field Value

Attributes

Remarks

A query parameter specifing a primary account. This parameter should be used with #PRIMARY_ACCOUNT_TYPE. The contacts provider handling a query may rely on this information to optimize its query results.

For example, in an email composition screen, its implementation can specify an account when obtaining possible recipients, letting the provider know which account is selected during the composition. The provider may use the "primary account" information to optimize the search result.

Java documentation for android.provider.ContactsContract.PRIMARY_ACCOUNT_NAME.

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.

Applies to