LocaleSpan Constructors

Definition

Overloads

LocaleSpan(LocaleList)

Creates a LocaleSpan from LocaleList.

LocaleSpan(Parcel)

Creates a LocaleSpan from LocaleList.

LocaleSpan(Locale)

Creates a LocaleSpan from a well-formed Locale.

LocaleSpan(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

LocaleSpan(LocaleList)

Creates a LocaleSpan from LocaleList.

[Android.Runtime.Register(".ctor", "(Landroid/os/LocaleList;)V", "", ApiSince=24)]
public LocaleSpan (Android.OS.LocaleList locales);
[<Android.Runtime.Register(".ctor", "(Landroid/os/LocaleList;)V", "", ApiSince=24)>]
new Android.Text.Style.LocaleSpan : Android.OS.LocaleList -> Android.Text.Style.LocaleSpan

Parameters

locales
LocaleList

The LocaleList of the text to which the span is attached.

Attributes

Remarks

Creates a LocaleSpan from LocaleList.

Java documentation for android.text.style.LocaleSpan.LocaleSpan(android.os.LocaleList).

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

LocaleSpan(Parcel)

Creates a LocaleSpan from LocaleList.

[Android.Runtime.Register(".ctor", "(Landroid/os/Parcel;)V", "")]
public LocaleSpan (Android.OS.Parcel? source);
[<Android.Runtime.Register(".ctor", "(Landroid/os/Parcel;)V", "")>]
new Android.Text.Style.LocaleSpan : Android.OS.Parcel -> Android.Text.Style.LocaleSpan

Parameters

source
Parcel
Attributes

Remarks

Java documentation for android.text.style.LocaleSpan.LocaleSpan(android.os.LocaleList).

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

LocaleSpan(Locale)

Creates a LocaleSpan from a well-formed Locale.

[Android.Runtime.Register(".ctor", "(Ljava/util/Locale;)V", "")]
public LocaleSpan (Java.Util.Locale? locale);
[<Android.Runtime.Register(".ctor", "(Ljava/util/Locale;)V", "")>]
new Android.Text.Style.LocaleSpan : Java.Util.Locale -> Android.Text.Style.LocaleSpan

Parameters

locale
Locale

The Locale of the text to which the span is attached.

Attributes

Remarks

Creates a LocaleSpan from a well-formed Locale. Note that only Locale objects that can be created by Locale#forLanguageTag(String) are supported.

<b>Caveat:</b> Do not specify any Locale object that cannot be created by Locale#forLanguageTag(String). new Locale(" a ", " b c", " d") is an example of such a malformed Locale object.

Java documentation for android.text.style.LocaleSpan.LocaleSpan(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

LocaleSpan(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

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

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

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