Partager via


NumberRangeFormatterSettings.NumberFormatterFirst Method

Definition

Sets the NumberFormatter instance to use for the first number in the range.

[Android.Runtime.Register("numberFormatterFirst", "(Landroid/icu/number/UnlocalizedNumberFormatter;)Landroid/icu/number/NumberRangeFormatterSettings;", "GetNumberFormatterFirst_Landroid_icu_number_UnlocalizedNumberFormatter_Handler", ApiSince=30)]
public virtual Java.Lang.Object? NumberFormatterFirst (Android.Icu.Number.UnlocalizedNumberFormatter? formatterFirst);
[<Android.Runtime.Register("numberFormatterFirst", "(Landroid/icu/number/UnlocalizedNumberFormatter;)Landroid/icu/number/NumberRangeFormatterSettings;", "GetNumberFormatterFirst_Landroid_icu_number_UnlocalizedNumberFormatter_Handler", ApiSince=30)>]
abstract member NumberFormatterFirst : Android.Icu.Number.UnlocalizedNumberFormatter -> Java.Lang.Object
override this.NumberFormatterFirst : Android.Icu.Number.UnlocalizedNumberFormatter -> Java.Lang.Object

Parameters

formatterFirst
UnlocalizedNumberFormatter

The formatter to use for the first number in the range.

Returns

The fluent chain.

Attributes

Remarks

Sets the NumberFormatter instance to use for the first number in the range.

The NumberFormatter instance must not have a locale applied yet; the locale specified on the NumberRangeFormatter will be used.

Java documentation for android.icu.number.NumberRangeFormatterSettings.numberFormatterFirst(android.icu.number.UnlocalizedNumberFormatter).

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