Skip to content

Most visited

Recently visited

navigation

Locale.Category

public static final enum Locale.Category
extends Enum<Locale.Category>

java.lang.Object
   ↳ java.lang.Enum<java.util.Locale.Category>
     ↳ java.util.Locale.Category


Enum for locale categories. These locale categories are used to get/set the default locale for the specific functionality represented by the category.

See also:

Summary

Enum values

Locale.Category  DISPLAY

Category used to represent the default locale for displaying user interfaces. 

Locale.Category  FORMAT

Category used to represent the default locale for formatting dates, numbers, and/or currencies. 

Public methods

static Locale.Category valueOf(String name)
static final Category[] values()

Inherited methods

From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum values

DISPLAY

added in API level 24
Locale.Category DISPLAY

Category used to represent the default locale for displaying user interfaces.

FORMAT

added in API level 24
Locale.Category FORMAT

Category used to represent the default locale for formatting dates, numbers, and/or currencies.

Public methods

valueOf

added in API level 24
Locale.Category valueOf (String name)

Parameters
name String

Returns
Locale.Category

values

added in API level 24
Category[] values ()

Returns
Category[]

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)