Language

Contacts.ContactMethods.GetDisplayLabel Method

Definition

Caution

deprecated

This member is deprecated.

[System.Obsolete("deprecated")]
public static string? GetDisplayLabel(Android.Content.Context? context, Android.Provider.ContactKind kind, Android.Provider.ContactMethodColumn type, string? label);
[<System.Obsolete("deprecated")>]
static member GetDisplayLabel : Android.Content.Context * Android.Provider.ContactKind * Android.Provider.ContactMethodColumn * string -> string

Parameters

context
Context

The context used to load built-in labels when a resource label is needed.

kind
ContactKind

The legacy data kind. Only email and postal kinds use type-specific label tables.

type
ContactMethodColumn

The legacy type code used to select a label; zero selects the custom label.

label
String

The optional custom label used for the custom type of an email or postal kind.

Returns

The email or postal type label, or the generic untitled label for another kind. An empty custom label stays empty.

Attributes

Remarks

This member is deprecated. see android.provider.ContactsContract

Java documentation for android.provider.Contacts.ContactMethods.getDisplayLabel(android.content.Context, int, int, java.lang.CharSequence).

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