Partager via


ContactsContract.RawContacts.GetLocalAccountType(Context) Method

Definition

The default value used for #ACCOUNT_TYPE of raw contacts when they are inserted without a value for this column.

[Android.Runtime.Register("getLocalAccountType", "(Landroid/content/Context;)Ljava/lang/String;", "", ApiSince=30)]
public static string? GetLocalAccountType (Android.Content.Context context);
[<Android.Runtime.Register("getLocalAccountType", "(Landroid/content/Context;)Ljava/lang/String;", "", ApiSince=30)>]
static member GetLocalAccountType : Android.Content.Context -> string

Parameters

context
Context

Returns

Attributes

Remarks

The default value used for #ACCOUNT_TYPE of raw contacts when they are inserted without a value for this column.

This account is used to identify contacts that are only stored locally in the contacts database instead of being associated with an Account managed by an installed application.

When this returns null then #getLocalAccountName will also return null and when it is non-null #getLocalAccountName will also return a non-null value.

Java documentation for android.provider.ContactsContract.RawContacts.getLocalAccountType(android.content.Context).

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