Resources.GetQuantityTextFormatted(Int32, Int32) Resources.GetQuantityTextFormatted(Int32, Int32) Method

Definition

Returns the character sequence necessary for grammatically correct pluralization of the given resource ID for the given quantity.

[Android.Runtime.Register("getQuantityText", "(II)Ljava/lang/CharSequence;", "GetGetQuantityText_IIHandler")]
public virtual Java.Lang.ICharSequence GetQuantityTextFormatted (int id, int quantity);
abstract member GetQuantityTextFormatted : int * int -> Java.Lang.ICharSequence
override this.GetQuantityTextFormatted : int * int -> Java.Lang.ICharSequence

Parameters

id
Int32 Int32

The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier.

quantity
Int32 Int32

The number used to get the correct string for the current language's plural rules.

Returns

Exceptions

Throws NotFoundException if the given ID does not exist.

Remarks

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