Language

MessageFormat Constructors

Definition

Overloads

Name Description
MessageFormat(String)

Constructs a MessageFormat for the default FORMAT locale and the specified pattern.

MessageFormat(IntPtr, JniHandleOwnership)

Creates a managed instance that represents an existing Java object.

MessageFormat(String, ULocale)

Constructs a MessageFormat for the specified locale and pattern.

MessageFormat(String, Locale)

Constructs a MessageFormat for the specified locale and pattern.

MessageFormat(String)

Constructs a MessageFormat for the default FORMAT locale and the specified pattern.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "", ApiSince=24)]
public MessageFormat(string? pattern);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "", ApiSince=24)>]
new Android.Icu.Text.MessageFormat : string -> Android.Icu.Text.MessageFormat

Parameters

pattern
String

the pattern for this message format

Attributes

Remarks

Constructs a MessageFormat for the default FORMAT locale and the specified pattern. Sets the locale and calls applyPattern(pattern).

Java documentation for android.icu.text.MessageFormat.MessageFormat(java.lang.String).

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

MessageFormat(IntPtr, JniHandleOwnership)

Creates a managed instance that represents an existing Java object.

protected MessageFormat(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Icu.Text.MessageFormat : nativeint * Android.Runtime.JniHandleOwnership -> Android.Icu.Text.MessageFormat

Parameters

javaReference
IntPtr

nativeint

A JNI reference to the Java object.

transfer
JniHandleOwnership

Specifies whether ownership of the JNI reference transfers to this instance.

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

MessageFormat(String, ULocale)

Constructs a MessageFormat for the specified locale and pattern.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/icu/util/ULocale;)V", "", ApiSince=24)]
public MessageFormat(string? pattern, Android.Icu.Util.ULocale? locale);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/icu/util/ULocale;)V", "", ApiSince=24)>]
new Android.Icu.Text.MessageFormat : string * Android.Icu.Util.ULocale -> Android.Icu.Text.MessageFormat

Parameters

pattern
String

the pattern for this message format

locale
ULocale

the locale for this message format

Attributes

Remarks

Constructs a MessageFormat for the specified locale and pattern. Sets the locale and calls applyPattern(pattern).

Java documentation for android.icu.text.MessageFormat.MessageFormat(java.lang.String, android.icu.util.ULocale).

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

MessageFormat(String, Locale)

Constructs a MessageFormat for the specified locale and pattern.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/util/Locale;)V", "", ApiSince=24)]
public MessageFormat(string? pattern, Java.Util.Locale? locale);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/util/Locale;)V", "", ApiSince=24)>]
new Android.Icu.Text.MessageFormat : string * Java.Util.Locale -> Android.Icu.Text.MessageFormat

Parameters

pattern
String

the pattern for this message format

locale
Locale

the locale for this message format

Attributes

Remarks

Constructs a MessageFormat for the specified locale and pattern. Sets the locale and calls applyPattern(pattern).

Java documentation for android.icu.text.MessageFormat.MessageFormat(java.lang.String, java.util.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