MeasureFormat.GetUnitDisplayName(MeasureUnit) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.