LocalePreferences
Provides friendly APIs to get the user's locale preferences. The data can refer to external/cldr/common/main/en.xml.
Types
Functions
Link copied to clipboard
Return the user's preference of the calendar type which is from getDefault.
Return the user's preference of the calendar type which is from getDefault, e.g.
Return the calendar type of the inputted Locale.
Return the calendar type of the inputted Locale, e.g.
Link copied to clipboard
Return the user's preference of the first day of week which is from getDefault.
Return the user's preference of the first day of week which is from getDefault, e.g.
Return the first day of week of the inputted Locale.
Return the first day of week of the inputted Locale, e.g.
Link copied to clipboard
Return the user's preference of the hour cycle which is from getDefault.
Return the user's preference of the hour cycle which is from getDefault, e.g.
Return the hour cycle setting of the inputted Locale.
Link copied to clipboard
Return the user's preference of the temperature unit which is from getDefault.
Return the user's preference of the temperature unit which is from getDefault, e.g.
Return the temperature unit of the inputted Locale.