Language

NumberRangeFormatterSettings.Collapse Method

Definition

Sets the aggressiveness of "collapsing" fields across the range separator.

[Android.Runtime.Register("collapse", "(Landroid/icu/number/NumberRangeFormatter$RangeCollapse;)Landroid/icu/number/NumberRangeFormatterSettings;", "GetCollapse_Landroid_icu_number_NumberRangeFormatter_RangeCollapse_Handler", ApiSince=30)]
public virtual Java.Lang.Object? Collapse(Android.Icu.Number.NumberRangeFormatter.RangeCollapse? collapse);
[<Android.Runtime.Register("collapse", "(Landroid/icu/number/NumberRangeFormatter$RangeCollapse;)Landroid/icu/number/NumberRangeFormatterSettings;", "GetCollapse_Landroid_icu_number_NumberRangeFormatter_RangeCollapse_Handler", ApiSince=30)>]
abstract member Collapse : Android.Icu.Number.NumberRangeFormatter.RangeCollapse -> Java.Lang.Object
override this.Collapse : Android.Icu.Number.NumberRangeFormatter.RangeCollapse -> Java.Lang.Object

Parameters

collapse
NumberRangeFormatter.RangeCollapse

The collapsing strategy to use for this range.

Returns

The fluent chain.

Attributes

Remarks

Sets the aggressiveness of "collapsing" fields across the range separator. Possible values:

ALL: "3-5K miles"

UNIT: "3K - 5K miles"

NONE: "3K miles - 5K miles"

AUTO: usually UNIT or NONE, depending on the locale and formatter settings

The default value is AUTO.

Android reference for android.icu.number.NumberRangeFormatterSettings.collapse.

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