LangUtils

public class LangUtils

Created by weiqinxiao on 2018/2/27.

Constructors

Link copied to clipboard
public void LangUtils()

Types

Link copied to clipboard
public class RCLocale
可选择的语言的包装类

Properties

Link copied to clipboard
public static Locale systemLocale

Functions

Link copied to clipboard
public static LangUtils.RCLocale getAppLanguageLocal(Context context)
获取当前app 的语言设置
Link copied to clipboard
public static LangUtils.RCLocale getAppLocale(Context context)
Link copied to clipboard
public static Context getConfigurationContext(Context context)
Link copied to clipboard
public static LangUtils.RCLocale getCurrentLanguage(Context context)
获取当前语言,不管有没有设置或跟随系统
Link copied to clipboard
public static PushLanguage getPushLanguage(Context context)
Link copied to clipboard
public static Locale getSystemLocale()
获取系统语言
Link copied to clipboard
public static void saveLocale(Context context, LangUtils.RCLocale locale)
Link copied to clipboard
public static void setPushLanguage(Context context, PushLanguage pushLanguage)
Link copied to clipboard
public static void setSystemLocale(Locale locale)
设置系统语言