LocaleList.IndexOf(Locale) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Searches this LocaleList
for the specified Locale
and returns the index of
the first occurrence.
[Android.Runtime.Register("indexOf", "(Ljava/util/Locale;)I", "", ApiSince=24)]
public int IndexOf (Java.Util.Locale? locale);
[<Android.Runtime.Register("indexOf", "(Ljava/util/Locale;)I", "", ApiSince=24)>]
member this.IndexOf : Java.Util.Locale -> int
Parameters
- locale
- Locale
The Locale
to search for.
Returns
The index of the first occurrence of the Locale
or -1
if the item
wasn't found.
- Attributes
Remarks
Searches this LocaleList
for the specified Locale
and returns the index of the first occurrence.
Java documentation for android.os.LocaleList.indexOf(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.