Class RongConfigurationManager

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static RongConfigurationManager getInstance()
      static void init(Context context)
      void setFileMaxSize(Context context, int size) 设置发送文件时,支持发送的文件最大值。
      int getFileMaxSize(Context context) 获取发送文件时支持的文件最大值。
      void switchLocale(RCLocale locale, Context context) 用于切换语言
      Context getConfigurationContext(Context newBase) 生成 ConfigurationContext,在 attachBaseContext 方法中替换
      RCLocale getAppLocale(Context context) 获取应用内设置的语言
      Locale getSystemLocale() 获取系统语言
      PushLanguage getPushLanguage(Context context) 获取推送语言
      void setPushLanguage(Context context, PushLanguage pushLanguage) 设置推送语言
      RCLocale getLanguageLocal(Context context) 获取当前app 的语言设置
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • init

         static void init(Context context)
      • setFileMaxSize

         void setFileMaxSize(Context context, int size)

        设置发送文件时,支持发送的文件最大值。

        Parameters:
        context - 上下文
        size - 支持发送的文件最大值,单位兆。
      • getFileMaxSize

         int getFileMaxSize(Context context)

        获取发送文件时支持的文件最大值。

        Parameters:
        context - 上下文
        Returns:

        支持发送的文件最大值, 单位兆。

      • switchLocale

         void switchLocale(RCLocale locale, Context context)

        用于切换语言

        Parameters:
        locale - 可传入的值为RCLocale.LOCALE_CHINA、RCLocale.LOCALE_US 和 RCLocale.
      • getConfigurationContext

         Context getConfigurationContext(Context newBase)

        生成 ConfigurationContext,在 attachBaseContext 方法中替换

        Parameters:
        newBase - 上下文
        Returns:

        ConfigurationContext

      • getAppLocale

         RCLocale getAppLocale(Context context)

        获取应用内设置的语言

        Returns:

        应用内设置的语言

      • getSystemLocale

         Locale getSystemLocale()

        获取系统语言

        Returns:

        系统语言

      • getPushLanguage

         PushLanguage getPushLanguage(Context context)

        获取推送语言

        Returns:

        推送语言

      • setPushLanguage

         void setPushLanguage(Context context, PushLanguage pushLanguage)

        设置推送语言

        Parameters:
        pushLanguage - 推送语言
      • getLanguageLocal

         RCLocale getLanguageLocal(Context context)

        获取当前app 的语言设置