Udostępnij za pośrednictwem


LocaleConfig.Status Property

Definition

Get the status of reading the resource file where the LocaleConfig was stored.

public virtual int Status { [Android.Runtime.Register("getStatus", "()I", "GetGetStatusHandler", ApiSince=33)] get; }
[<get: Android.Runtime.Register("getStatus", "()I", "GetGetStatusHandler", ApiSince=33)>]
member this.Status : int

Property Value

STATUS_SUCCESS if the LocaleConfig structure existed in an XML file was successfully read, or STATUS_NOT_SPECIFIED if no android:localeConfig tag on <application> pointing to an XML file that stores the LocaleConfig, or STATUS_PARSING_FAILED if the application provided malformed input for the LocaleConfig structure.

Attributes

Remarks

Get the status of reading the resource file where the LocaleConfig was stored.

Distinguish "the application didn't provide the resource file" from "the application provided malformed input" if #getSupportedLocales() returns null.

Java documentation for android.app.LocaleConfig.getStatus().

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