Formatter.Locale Method

Definition

Returns the locale set by the construction of this formatter.

C#
[Android.Runtime.Register("locale", "()Ljava/util/Locale;", "")]
public Java.Util.Locale? Locale ();

Returns

null if no localization is applied, otherwise a locale

Attributes

Exceptions

if the Formatter has been closed.

Remarks

Returns the locale set by the construction of this formatter.

The #format(java.util.Locale,String,Object...) format method for this object which has a locale argument does not change this value.

Java documentation for java.util.Formatter.locale().

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

Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35