Package io.rong.imkit.utils.language

## Class LangUtils

- All Implemented Interfaces:

      public class LangUtils

  Created by weiqinxiao on 2018/2/27.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `public class` | `LangUtils.RCLocale` | 可选择的语言的包装类

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `public static Locale` | `systemLocale` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `LangUtils()` |

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `static Locale` | `getSystemLocale()` | 获取系统语言
    `static void` | `setSystemLocale(Locale locale)` | 设置系统语言
    `static Context` | `getConfigurationContext(Context context)` |
    `static LangUtils.RCLocale` | `getAppLocale(Context context)` |
    `static void` | `saveLocale(Context context, LangUtils.RCLocale locale)` |
    `static PushLanguage` | `getPushLanguage(Context context)` |
    `static void` | `setPushLanguage(Context context, PushLanguage pushLanguage)` |
    `static LangUtils.RCLocale` | `getCurrentLanguage(Context context)` | 获取当前语言,不管有没有设置或跟随系统
    `static LangUtils.RCLocale` | `getAppLanguageLocal(Context context)` | 获取当前app 的语言设置

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### LangUtils

          LangUtils()

  - ### Method Detail

    - #### getSystemLocale

           static Locale getSystemLocale()

      获取系统语言

      Returns:

        系统语言

    - #### setSystemLocale

           static void setSystemLocale(Locale locale)

      设置系统语言

      Parameters:
        `locale` - 设置的系统语音

    - #### getConfigurationContext

           static Context getConfigurationContext(Context context)

    - #### getAppLocale

           static LangUtils.RCLocale getAppLocale(Context context)

    - #### saveLocale

           static void saveLocale(Context context, LangUtils.RCLocale locale)

    - #### getPushLanguage

           static PushLanguage getPushLanguage(Context context)

    - #### setPushLanguage

           static void setPushLanguage(Context context, PushLanguage pushLanguage)

    - #### getCurrentLanguage

           static LangUtils.RCLocale getCurrentLanguage(Context context)

      获取当前语言,不管有没有设置或跟随系统

      Parameters:
        `context` - 上下文
      Returns:

        当前语言

    - #### getAppLanguageLocal

           static LangUtils.RCLocale getAppLanguageLocal(Context context)

      获取当前app 的语言设置