# LangUtils

public class LangUtils

Created by weiqinxiao on 2018/2/27.

## Constructors

LangUtils
Link copied to clipboard
public void LangUtils()

## Types

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

## Properties

systemLocale
Link copied to clipboard
public static Locale systemLocale

## Functions

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