Partager via


MeasureFormat.GetUnitDisplayName(MeasureUnit) Method

Definition

Gets the display name of the specified MeasureUnit corresponding to the current locale and format width.

[Android.Runtime.Register("getUnitDisplayName", "(Landroid/icu/util/MeasureUnit;)Ljava/lang/String;", "GetGetUnitDisplayName_Landroid_icu_util_MeasureUnit_Handler", ApiSince=28)]
public virtual string? GetUnitDisplayName (Android.Icu.Util.MeasureUnit? unit);
[<Android.Runtime.Register("getUnitDisplayName", "(Landroid/icu/util/MeasureUnit;)Ljava/lang/String;", "GetGetUnitDisplayName_Landroid_icu_util_MeasureUnit_Handler", ApiSince=28)>]
abstract member GetUnitDisplayName : Android.Icu.Util.MeasureUnit -> string
override this.GetUnitDisplayName : Android.Icu.Util.MeasureUnit -> string

Parameters

unit
MeasureUnit

The unit for which to get a display name.

Returns

The display name in the locale and width specified in MeasureFormat#getInstance, or null if there is no display name available for the specified unit.

Attributes

Remarks

Gets the display name of the specified MeasureUnit corresponding to the current locale and format width.

Java documentation for android.icu.text.MeasureFormat.getUnitDisplayName(android.icu.util.MeasureUnit).

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