public class RongConfigurationManager
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
LangUtils.RCLocale |
getAppLocale(android.content.Context context)
获取应用内设置的语言
|
android.content.Context |
getConfigurationContext(android.content.Context newBase)
生成 ConfigurationContext,在 attachBaseContext 方法中替换
|
int |
getFileMaxSize(android.content.Context context)
获取发送文件时支持的文件最大值。
|
static RongConfigurationManager |
getInstance() |
RongIMClient.PushLanguage |
getPushLanguage(android.content.Context context)
获取推送语言
|
java.util.Locale |
getSystemLocale()
获取系统语言
|
static void |
init(android.content.Context context) |
void |
setFileMaxSize(android.content.Context context,
int size)
设置发送文件时,支持发送的文件最大值。
|
void |
setPushLanguage(android.content.Context context,
RongIMClient.PushLanguage pushLanguage)
设置推送语言
|
void |
switchLocale(LangUtils.RCLocale locale,
android.content.Context context)
用于切换语言
|
public static RongConfigurationManager getInstance()
public static void init(android.content.Context context)
public void setFileMaxSize(android.content.Context context, int size)
context
- 上下文size
- 支持发送的文件最大值,单位兆。public int getFileMaxSize(android.content.Context context)
context
- 上下文public void switchLocale(LangUtils.RCLocale locale, android.content.Context context)
locale
- 可传入的值为RCLocale.LOCALE_CHINA、RCLocale.LOCALE_US 和 RCLocale.AUTOpublic android.content.Context getConfigurationContext(android.content.Context newBase)
newBase
- 上下文public LangUtils.RCLocale getAppLocale(android.content.Context context)
public java.util.Locale getSystemLocale()
public RongIMClient.PushLanguage getPushLanguage(android.content.Context context)
public void setPushLanguage(android.content.Context context, RongIMClient.PushLanguage pushLanguage)
pushLanguage
- 推送语言