Język

Contacts.Phones.GetDisplayLabel Method

Definition

Overloads

Name Description
GetDisplayLabel(Context, ContactPhoneColumn, String)
Obsolete.

This member is deprecated.

GetDisplayLabel(Context, ContactPhoneColumn, String, String[])
Obsolete.

This member is deprecated.

GetDisplayLabel(Context, ContactPhoneColumn, String)

Caution

deprecated

This member is deprecated.

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

Parameters

context
Context

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

type
ContactPhoneColumn

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

label
String

The optional text used for the custom type.

Returns

The selected phone-type label; the custom type returns an empty label when no nonempty custom text is supplied.

Attributes

Remarks

This member is deprecated. see android.provider.ContactsContract

Java documentation for android.provider.Contacts.Phones.getDisplayLabel(android.content.Context, 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

GetDisplayLabel(Context, ContactPhoneColumn, String, String[])

Caution

deprecated

This member is deprecated.

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

Parameters

context
Context

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

type
ContactPhoneColumn

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

label
String

The optional text used for the custom type.

labelArray
String[]

For non-custom types, an optional replacement array indexed by type - 1; null loads the framework phone-label array. An out-of-range index falls back to the first element, so an empty array throws an exception. Ignored for the custom type.

Returns

The selected phone-type label; the custom type returns an empty label when no nonempty custom text is supplied.

Attributes

Remarks

This member is deprecated. see android.provider.ContactsContract

Java documentation for android.provider.Contacts.Phones.getDisplayLabel(android.content.Context, int, java.lang.CharSequence, 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