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
    • 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(LangUtils.RCLocale locale, Context context)

        用于切换语言

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

         Context getConfigurationContext(Context newBase)

        生成 ConfigurationContext,在 attachBaseContext 方法中替换

        Parameters:
        newBase - 上下文
        Returns:

        ConfigurationContext

      • getPushLanguage

         RongIMClient.PushLanguage getPushLanguage(Context context)

        获取推送语言

        Returns:

        推送语言

      • setPushLanguage

         void setPushLanguage(Context context, RongIMClient.PushLanguage pushLanguage)

        设置推送语言

        Parameters:
        pushLanguage - 推送语言