Partager via


NumberRangeFormatterSettings.NumberFormatterBoth Method

Definition

Sets the NumberFormatter instance to use for the numbers in the range.

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

Parameters

formatter
UnlocalizedNumberFormatter

The formatter to use for both numbers in the range.

Returns

The fluent chain.

Attributes

Remarks

Sets the NumberFormatter instance to use for the numbers in the range. The same formatter is applied to both sides of the range.

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

Java documentation for android.icu.number.NumberRangeFormatterSettings.numberFormatterBoth(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